mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-15 09:35:40 -05:00
More cleanup
This commit is contained in:
21
Data/DeviceData.cs
Normal file
21
Data/DeviceData.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace WeatherService.Data
|
||||
{
|
||||
[Table("Device")]
|
||||
public class DeviceData
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user