mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-13 17:23:11 -05:00
More cleanup
This commit is contained in:
@@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace WeatherService.Data
|
||||
{
|
||||
[Table("Device")]
|
||||
public class Device
|
||||
public class DeviceData
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace WeatherService.Data
|
||||
{
|
||||
[Table("Reading")]
|
||||
public class Reading
|
||||
public class ReadingData
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
namespace WeatherService.Data
|
||||
{
|
||||
[Table("Setting")]
|
||||
public class Setting
|
||||
public class SettingData
|
||||
{
|
||||
[Key]
|
||||
[StringLength(500)]
|
||||
@@ -39,7 +39,7 @@ namespace WeatherService.Data
|
||||
DatabaseExists[year] = true;
|
||||
}
|
||||
|
||||
public virtual DbSet<Reading> Readings { get; set; }
|
||||
public virtual DbSet<ReadingData> Readings { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace WeatherService.Data
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<Device> Devices { get; set; }
|
||||
public virtual DbSet<Setting> Settings { get; set; }
|
||||
public virtual DbSet<DeviceData> Devices { get; set; }
|
||||
public virtual DbSet<SettingData> Settings { get; set; }
|
||||
|
||||
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user