69 lines
1.7 KiB
C#
69 lines
1.7 KiB
C#
///
|
|
/// Copyright (c) 2013-2017 Sensus Metering Systems
|
|
///
|
|
using FluentNHibernate.Mapping;
|
|
using Config.Entities;
|
|
|
|
namespace Config.Mappings
|
|
{
|
|
class TestMap : ClassMap<Test>
|
|
{
|
|
public TestMap()
|
|
{
|
|
Id(x => x.Id);
|
|
Map(x => x.ItemNr);
|
|
Map(x => x.Name);
|
|
Map(x => x.Part);
|
|
Map(x => x.Publish);
|
|
Map(x => x.DoEvaluate)
|
|
.Column("Evaluate");
|
|
#if TEST_PROFILES
|
|
Map(x => x.Qtg);
|
|
#endif
|
|
Map(x => x.Qfrom);
|
|
Map(x => x.Qto);
|
|
Map(x => x.Volume);
|
|
Map(x => x.TstTime);
|
|
Map(x => x.Repeats);
|
|
Map(x => x.DoDraining)
|
|
.Column("Emptying");
|
|
Map(x => x.DoDrainingAfter)
|
|
.Column("Zeroing");
|
|
Map(x => x.DoControlWaterTemp);
|
|
Map(x => x.TempLimLo);
|
|
Map(x => x.TempLimHi);
|
|
Map(x => x.PumpPower);
|
|
Map(x => x.MassRepeats);
|
|
Map(x => x.MassSpread);
|
|
Map(x => x.MassMethod)
|
|
.CustomType<byte>();
|
|
Map(x => x.TimeBeforeFlow);
|
|
Map(x => x.TimeFlow2Mass);
|
|
Map(x => x.TimePump2StartV)
|
|
.Column("TimeMass2Start");
|
|
Map(x => x.TimeStop2Mass);
|
|
Map(x => x.Method);
|
|
Map(x => x.ErrLimLo);
|
|
Map(x => x.ErrLimHi);
|
|
Map(x => x.Uncertainty);
|
|
Map(x => x.TolerRed)
|
|
.Column("TolerRed"); /// ???
|
|
Map(x => x.RedType); /// ???
|
|
Map(x => x.FeedingPath);
|
|
Map(x => x.BenchPath);
|
|
Map(x => x.OutputPath);
|
|
Map(x => x.MetersPath);
|
|
#if HEAT_METERS
|
|
Map(x => x.HeatMetersPath);
|
|
#endif
|
|
Map(x => x.RelTransBefore);
|
|
Map(x => x.RelTransBetween);
|
|
Map(x => x.RelTransAfter);
|
|
Map(x => x.TransitionAfter);
|
|
HasMany(x => x.MoreParams)
|
|
.Cascade.All();
|
|
References(x => x.Procedure);
|
|
}
|
|
}
|
|
}
|