Change from SQL CE to SQL Express

This commit is contained in:
2015-01-14 14:41:04 -05:00
parent 822f6ccdea
commit f54f92330b
21 changed files with 383 additions and 413 deletions

21
Data/Device.cs Normal file
View File

@@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace WeatherService.Data
{
[Table("Device")]
public class Device
{
public int Id { get; set; }
[Required]
[StringLength(100)]
public string Address { get; set; }
[Required]
[StringLength(100)]
public string Name { get; set; }
public int ReadInterval { get; set; }
}
}