2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2022-12-05 12:42:48 +00:00
|
|
|
|
/// Copyright (c) 2013-2022 Sensus Slovensko a.s.
|
2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
|
|
|
|
|
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 TestMap : ClassMap<Test>
|
|
|
|
|
|
{
|
|
|
|
|
|
public TestMap()
|
|
|
|
|
|
{
|
|
|
|
|
|
Id(x => x.Id);
|
|
|
|
|
|
Map(x => x.ItemNr);
|
|
|
|
|
|
Map(x => x.Name);
|
2015-01-04 22:21:12 +00:00
|
|
|
|
Map(x => x.Part);
|
2019-11-27 10:22:32 +00:00
|
|
|
|
Map(x => x.Profile);
|
|
|
|
|
|
Map(x => x.Publish);
|
2017-06-08 13:42:47 +00:00
|
|
|
|
Map(x => x.DoEvaluate)
|
|
|
|
|
|
.Column("Evaluate");
|
2019-09-21 16:03:25 +00:00
|
|
|
|
Map(x => x.Qtg);
|
|
|
|
|
|
Map(x => x.Qfrom);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
Map(x => x.Qto);
|
|
|
|
|
|
Map(x => x.Volume);
|
2021-09-23 09:46:40 +00:00
|
|
|
|
Map(x => x.TestTime)
|
|
|
|
|
|
.Column("TstTime");
|
2014-07-28 07:54:35 +00:00
|
|
|
|
Map(x => x.Repeats);
|
2017-06-08 13:42:47 +00:00
|
|
|
|
Map(x => x.DoDraining)
|
2017-03-28 21:47:32 +00:00
|
|
|
|
.Column("Emptying");
|
2019-10-24 12:38:36 +00:00
|
|
|
|
Map(x => x.DoDrainingAfter)
|
2017-06-08 13:42:47 +00:00
|
|
|
|
.Column("Zeroing");
|
|
|
|
|
|
Map(x => x.TempLimLo);
|
|
|
|
|
|
Map(x => x.TempLimHi);
|
2022-05-19 13:58:13 +00:00
|
|
|
|
Map(x => x.TempControl);
|
|
|
|
|
|
Map(x => x.PumpPower);
|
2016-04-14 15:03:33 +00:00
|
|
|
|
Map(x => x.MassRepeats);
|
|
|
|
|
|
Map(x => x.MassSpread);
|
2017-03-28 19:40:27 +00:00
|
|
|
|
Map(x => x.MassMethod)
|
|
|
|
|
|
.CustomType<byte>();
|
2015-05-19 13:38:58 +00:00
|
|
|
|
Map(x => x.TimeBeforeFlow);
|
|
|
|
|
|
Map(x => x.TimeFlow2Mass);
|
2016-03-17 04:05:30 +00:00
|
|
|
|
Map(x => x.TimePump2StartV)
|
|
|
|
|
|
.Column("TimeMass2Start");
|
2015-05-19 13:38:58 +00:00
|
|
|
|
Map(x => x.TimeStop2Mass);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
Map(x => x.Method);
|
|
|
|
|
|
Map(x => x.ErrLimLo);
|
|
|
|
|
|
Map(x => x.ErrLimHi);
|
2015-11-27 14:10:55 +00:00
|
|
|
|
Map(x => x.Uncertainty);
|
2021-09-23 09:46:40 +00:00
|
|
|
|
Map(x => x.ShortPulses)
|
2016-04-14 15:03:33 +00:00
|
|
|
|
.Column("TolerRed"); /// ???
|
2019-10-30 07:29:16 +00:00
|
|
|
|
Map(x => x.RedType);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
Map(x => x.FeedingPath);
|
|
|
|
|
|
Map(x => x.BenchPath);
|
|
|
|
|
|
Map(x => x.OutputPath);
|
|
|
|
|
|
Map(x => x.MetersPath);
|
2017-02-14 12:25:43 +00:00
|
|
|
|
#if HEAT_METERS
|
2016-06-28 16:04:52 +00:00
|
|
|
|
Map(x => x.HeatMetersPath);
|
|
|
|
|
|
#endif
|
2021-09-23 09:46:40 +00:00
|
|
|
|
Map(x => x.TransBefore)
|
2019-11-27 10:22:32 +00:00
|
|
|
|
.Column("RelTransBefore");
|
2021-09-23 09:46:40 +00:00
|
|
|
|
Map(x => x.TransBetween)
|
2019-11-27 10:22:32 +00:00
|
|
|
|
.Column("RelTransBetween");
|
2021-09-23 09:46:40 +00:00
|
|
|
|
Map(x => x.TransAfter)
|
2019-11-27 10:22:32 +00:00
|
|
|
|
.Column("TransitionAfter");
|
2022-12-05 12:42:48 +00:00
|
|
|
|
#if ORACLE_DB
|
|
|
|
|
|
Map(x => x.OraId);
|
|
|
|
|
|
Map(x => x.OraIdRepetMulti);
|
|
|
|
|
|
Map(x => x.OraDesignation);
|
|
|
|
|
|
Map(x => x.RawDataId);
|
|
|
|
|
|
Map(x => x.RawDataIdRepetMulti);
|
|
|
|
|
|
Map(x => x.RawDataDesignation);
|
|
|
|
|
|
#endif
|
2019-11-27 10:22:32 +00:00
|
|
|
|
|
|
|
|
|
|
HasMany(x => x.MoreParams)
|
2014-07-28 07:54:35 +00:00
|
|
|
|
.Cascade.All();
|
|
|
|
|
|
References(x => x.Procedure);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|