32 lines
721 B
C#
32 lines
721 B
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using FluentNHibernate.Mapping;
|
|
using TBF.Entities;
|
|
|
|
namespace TBF.Mappings
|
|
{
|
|
class TransitionStepMap : ClassMap<TransitionStep>
|
|
{
|
|
public TransitionStepMap()
|
|
{
|
|
Id(x => x.Id);
|
|
Map(x => x.ItemNr);
|
|
Map(x => x.Duration);
|
|
Map(x => x.Message);
|
|
Map(x => x.EndCondition);
|
|
Map(x => x.Communication);
|
|
Map(x => x.ValvesOpen)
|
|
.CustomType("StringClob")
|
|
.CustomSqlType("varchar(8000)");
|
|
Map(x => x.ValvesClose)
|
|
.CustomType("StringClob")
|
|
.CustomSqlType("varchar(8000)");
|
|
Map(x => x.RegulValvesPct);
|
|
Map(x => x.PumpWithFMPcts);
|
|
|
|
References(x => x.TransitionSequence);
|
|
}
|
|
}
|
|
}
|