2015-12-29 09:56:42 +00:00
|
|
|
|
///
|
2019-09-17 08:27:23 +00:00
|
|
|
|
/// Copyright (c) 2015-2019 Sensus Slovensko a.s.
|
2015-12-29 09:56:42 +00:00
|
|
|
|
///
|
|
|
|
|
|
using FluentNHibernate.Mapping;
|
|
|
|
|
|
using Results.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Results.Mappings
|
|
|
|
|
|
{
|
|
|
|
|
|
class TestRsltMap : ClassMap<TestRslt>
|
|
|
|
|
|
{
|
|
|
|
|
|
public TestRsltMap()
|
|
|
|
|
|
{
|
|
|
|
|
|
Id(x => x.Id);
|
|
|
|
|
|
References<Batch>(x => x.Batch);
|
|
|
|
|
|
References<TestData>(x => x.TestData);
|
2015-12-31 23:00:03 +00:00
|
|
|
|
References<Components>(x => x.Components);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.Part);
|
|
|
|
|
|
Map(x => x.RepetitionNr);
|
2019-09-17 08:27:23 +00:00
|
|
|
|
Map(x => x.MethodClass);
|
2015-12-31 23:00:03 +00:00
|
|
|
|
|
2017-06-06 13:09:59 +00:00
|
|
|
|
Map(x => x.TestDone);
|
|
|
|
|
|
Map(x => x.Remark)
|
|
|
|
|
|
.CustomType("StringClob")
|
|
|
|
|
|
.CustomSqlType("varchar(2000)");
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.StartTime);
|
|
|
|
|
|
Map(x => x.EndTime);
|
|
|
|
|
|
Map(x => x.FlowSetTime);
|
2019-09-17 08:27:23 +00:00
|
|
|
|
Map(x => x.TimeBtwnMassMsrmnts);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.TestTime);
|
2019-09-17 08:27:23 +00:00
|
|
|
|
Map(x => x.TestTimeCorrection);
|
2015-12-31 23:00:03 +00:00
|
|
|
|
Map(x => x.PulsesMaster);
|
2019-09-17 08:27:23 +00:00
|
|
|
|
Map(x => x.ConstMasterRaw);
|
|
|
|
|
|
Map(x => x.ConstMasterCorr);
|
|
|
|
|
|
Map(x => x.ConstMaster);
|
2015-12-31 23:00:03 +00:00
|
|
|
|
Map(x => x.MassStartRaw);
|
|
|
|
|
|
Map(x => x.MassStart);
|
|
|
|
|
|
Map(x => x.MassEndRaw);
|
|
|
|
|
|
Map(x => x.MassEnd);
|
|
|
|
|
|
Map(x => x.DensityIn);
|
2018-02-26 13:37:22 +00:00
|
|
|
|
Map(x => x.DensityLine).Column("DensityOut");
|
2015-12-31 23:00:03 +00:00
|
|
|
|
Map(x => x.DensityDiv);
|
|
|
|
|
|
Map(x => x.Buoyancy);
|
|
|
|
|
|
Map(x => x.FlowMass);
|
2016-01-03 01:05:35 +00:00
|
|
|
|
Map(x => x.FlowVolume);
|
2015-12-31 23:00:03 +00:00
|
|
|
|
Map(x => x.VolumeCTV);
|
|
|
|
|
|
Map(x => x.VolumeMaster);
|
|
|
|
|
|
Map(x => x.ErrorMaster);
|
2017-09-27 21:04:30 +00:00
|
|
|
|
Map(x => x.DiverterStart);
|
|
|
|
|
|
Map(x => x.DiverterEnd);
|
|
|
|
|
|
Map(x => x.ErrorFlags);
|
2019-12-03 09:32:46 +00:00
|
|
|
|
Map(x => x.InfoFlags);
|
2017-02-14 12:25:43 +00:00
|
|
|
|
#if HEAT_METERS
|
2016-08-19 12:30:40 +00:00
|
|
|
|
Map(x => x.RefEnergy);
|
|
|
|
|
|
#endif
|
2016-10-18 16:48:20 +00:00
|
|
|
|
Map(x => x.AmbTempMean).Column("AmbientTempAve");
|
2016-08-19 12:30:40 +00:00
|
|
|
|
Map(x => x.AmbTempStart);
|
|
|
|
|
|
Map(x => x.AmbTempEnd);
|
|
|
|
|
|
Map(x => x.AmbTempMin);
|
|
|
|
|
|
Map(x => x.AmbTempMax);
|
2016-10-18 16:48:20 +00:00
|
|
|
|
Map(x => x.AmbPressMean).Column("AmbientPressAve");
|
2016-08-19 12:30:40 +00:00
|
|
|
|
Map(x => x.AmbPressStart);
|
|
|
|
|
|
Map(x => x.AmbPressEnd);
|
|
|
|
|
|
Map(x => x.AmbPressMin);
|
|
|
|
|
|
Map(x => x.AmbPressMax);
|
2016-10-18 16:48:20 +00:00
|
|
|
|
Map(x => x.AmbHumiMean).Column("AmbientHumiAve");
|
2016-08-19 12:30:40 +00:00
|
|
|
|
Map(x => x.AmbHumiStart);
|
|
|
|
|
|
Map(x => x.AmbHumiEnd);
|
|
|
|
|
|
Map(x => x.AmbHumiMin);
|
|
|
|
|
|
Map(x => x.AmbHumiMax);
|
2016-10-18 16:48:20 +00:00
|
|
|
|
Map(x => x.PressUpMean).Column("PressUpAvrg");
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.PressUpStart);
|
|
|
|
|
|
Map(x => x.PressUpEnd);
|
|
|
|
|
|
Map(x => x.PressUpMin);
|
|
|
|
|
|
Map(x => x.PressUpMax);
|
2016-10-18 16:48:20 +00:00
|
|
|
|
Map(x => x.PressDownMean).Column("PressDownAvrg");
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.PressDownStart);
|
|
|
|
|
|
Map(x => x.PressDownEnd);
|
|
|
|
|
|
Map(x => x.PressDownMin);
|
|
|
|
|
|
Map(x => x.PressDownMax);
|
2016-10-18 16:48:20 +00:00
|
|
|
|
Map(x => x.PressDeltaMean);
|
|
|
|
|
|
Map(x => x.PressDeltaStart);
|
|
|
|
|
|
Map(x => x.PressDeltaEnd);
|
|
|
|
|
|
Map(x => x.PressDeltaMin);
|
|
|
|
|
|
Map(x => x.PressDeltaMax);
|
|
|
|
|
|
Map(x => x.TempUpMean).Column("TempInAvrg");
|
|
|
|
|
|
Map(x => x.TempUpStart).Column("TempInStart");
|
|
|
|
|
|
Map(x => x.TempUpEnd).Column("TempInEnd");
|
|
|
|
|
|
Map(x => x.TempUpMin).Column("TempInMin");
|
|
|
|
|
|
Map(x => x.TempUpMax).Column("TempInMax");
|
|
|
|
|
|
Map(x => x.TempDownMean).Column("TempOutAvrg");
|
|
|
|
|
|
Map(x => x.TempDownStart).Column("TempOutStart");
|
|
|
|
|
|
Map(x => x.TempDownEnd).Column("TempOutEnd");
|
|
|
|
|
|
Map(x => x.TempDownMin).Column("TempOutMin");
|
|
|
|
|
|
Map(x => x.TempDownMax).Column("TempOutMax");
|
|
|
|
|
|
Map(x => x.TempDivMean).Column("TempDivAvrg");
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.TempDivStart);
|
|
|
|
|
|
Map(x => x.TempDivEnd);
|
|
|
|
|
|
Map(x => x.TempDivMin);
|
|
|
|
|
|
Map(x => x.TempDivMax);
|
2017-06-06 13:09:59 +00:00
|
|
|
|
Map(x => x.FlowMean);
|
2016-10-18 16:48:20 +00:00
|
|
|
|
Map(x => x.FlowStart);
|
|
|
|
|
|
Map(x => x.FlowEnd);
|
2017-06-06 13:09:59 +00:00
|
|
|
|
Map(x => x.FlowMin);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.FlowMax);
|
2015-12-31 23:00:03 +00:00
|
|
|
|
|
2019-09-21 16:03:25 +00:00
|
|
|
|
Map(x => x.Uncertnt);
|
|
|
|
|
|
Map(x => x.UncertntScale);
|
|
|
|
|
|
Map(x => x.UncertntDensity);
|
|
|
|
|
|
Map(x => x.UncertntTemp);
|
|
|
|
|
|
Map(x => x.UncertntPressure);
|
|
|
|
|
|
|
2015-12-31 23:00:03 +00:00
|
|
|
|
Map(x => x.Custom1);
|
|
|
|
|
|
Map(x => x.Custom2);
|
|
|
|
|
|
Map(x => x.Custom3);
|
|
|
|
|
|
Map(x => x.Custom4);
|
|
|
|
|
|
Map(x => x.Custom5);
|
|
|
|
|
|
Map(x => x.Custom6);
|
|
|
|
|
|
Map(x => x.Custom7);
|
|
|
|
|
|
Map(x => x.Custom8);
|
2020-01-22 12:51:26 +00:00
|
|
|
|
|
|
|
|
|
|
Map(x => x.Counter1);
|
|
|
|
|
|
Map(x => x.Counter2);
|
|
|
|
|
|
Map(x => x.Counter3);
|
|
|
|
|
|
Map(x => x.Counter4);
|
|
|
|
|
|
Map(x => x.Counter5);
|
|
|
|
|
|
}
|
2015-12-29 09:56:42 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|