mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-13 17:23:11 -05:00
29 lines
835 B
C#
29 lines
835 B
C#
using System.Data.Linq.Mapping;
|
|
|
|
namespace WeatherService.Data
|
|
{
|
|
[Table(Name = "Device")]
|
|
public class DeviceData
|
|
{
|
|
[Column(UpdateCheck = UpdateCheck.Never, IsDbGenerated = true, IsPrimaryKey = true)]
|
|
public int Id;
|
|
|
|
[Column(UpdateCheck = UpdateCheck.Never)]
|
|
public string Address;
|
|
|
|
[Column(UpdateCheck = UpdateCheck.Never)]
|
|
public string Name;
|
|
|
|
[Column(UpdateCheck = UpdateCheck.Never)]
|
|
public int ReadInterval;
|
|
|
|
//private readonly EntitySet<Reading> _readingSet = new EntitySet<Reading>();
|
|
//[Association(Storage = "_readingSet", OtherKey = "DeviceId", ThisKey = "Id")]
|
|
//public EntitySet<Reading> Readings
|
|
//{
|
|
// get { return _readingSet; }
|
|
// set { _readingSet.Assign(value); }
|
|
//}
|
|
}
|
|
}
|