2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
|
|
|
|
///
|
|
|
|
|
|
using FluentNHibernate.Mapping;
|
2015-12-04 16:17:20 +00:00
|
|
|
|
using Config.Entities;
|
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 TransitionSequenceMap : ClassMap<TransitionSequence>
|
|
|
|
|
|
{
|
|
|
|
|
|
public TransitionSequenceMap()
|
|
|
|
|
|
{
|
|
|
|
|
|
Id(x => x.Id);
|
|
|
|
|
|
Map(x => x.ItemNr);
|
|
|
|
|
|
Map(x => x.Name);
|
|
|
|
|
|
Map(x => x.Description);
|
|
|
|
|
|
HasMany(x => x.TransitionSteps)
|
|
|
|
|
|
.OrderBy("ItemNr")
|
|
|
|
|
|
.Cascade.All();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|