mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-14 09:59:46 -05:00
22 lines
454 B
C#
22 lines
454 B
C#
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; }
|
|
}
|
|
}
|