tbf/TestBenchFramework/Mappings/WatermeterMap.cs

17 lines
348 B
C#
Raw Normal View History

using FluentNHibernate.Mapping;
namespace TBF.Mappings
{
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);
}
}
}