2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
|
|
|
|
///
|
|
|
|
|
|
using FluentNHibernate.Mapping;
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
2015-12-04 16:17:20 +00:00
|
|
|
|
namespace Config.Mappings
|
2014-07-28 07:54:35 +00:00
|
|
|
|
{
|
|
|
|
|
|
class WatermeterMap : ClassMap<Entities.Watermeter>
|
|
|
|
|
|
{
|
|
|
|
|
|
public WatermeterMap()
|
|
|
|
|
|
{
|
|
|
|
|
|
Id(x => x.Id);
|
|
|
|
|
|
Map(x => x.Serial);
|
|
|
|
|
|
// HasOne(x => x.WMType)
|
|
|
|
|
|
// .Cascade.All();
|
|
|
|
|
|
References(x => x.WMType);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|