mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-14 01:25:43 -05:00
20 lines
429 B
C#
20 lines
429 B
C#
using System.Data.Entity;
|
|
|
|
namespace WeatherService.Data
|
|
{
|
|
public class WeatherData : DbContext
|
|
{
|
|
public WeatherData()
|
|
: base("name=WeatherData")
|
|
{
|
|
}
|
|
|
|
public virtual DbSet<DeviceData> Devices { get; set; }
|
|
public virtual DbSet<SettingData> Settings { get; set; }
|
|
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
{
|
|
}
|
|
}
|
|
}
|