mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-14 01:25:43 -05:00
Change from SQL CE to SQL Express
This commit is contained in:
19
Data/WeatherData.cs
Normal file
19
Data/WeatherData.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Data.Entity;
|
||||
|
||||
namespace WeatherService.Data
|
||||
{
|
||||
public class WeatherData : DbContext
|
||||
{
|
||||
public WeatherData()
|
||||
: base("name=WeatherData")
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<Device> Devices { get; set; }
|
||||
public virtual DbSet<Setting> Settings { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user