2015-12-29 09:56:42 +00:00
|
|
|
|
///
|
2021-06-27 13:52:05 +00:00
|
|
|
|
/// Copyright (c) 2015-2021 Sensus Slovensko a.s.
|
2015-12-29 09:56:42 +00:00
|
|
|
|
///
|
|
|
|
|
|
using FluentNHibernate.Mapping;
|
|
|
|
|
|
using Results.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Results.Mappings
|
|
|
|
|
|
{
|
|
|
|
|
|
class MeterTestRsltMap : ClassMap<MeterTestRslt>
|
|
|
|
|
|
{
|
|
|
|
|
|
public MeterTestRsltMap()
|
|
|
|
|
|
{
|
|
|
|
|
|
Id(x => x.Id);
|
2015-12-31 23:00:03 +00:00
|
|
|
|
Map(x => x.CompoundMeterId);
|
2019-09-17 08:27:23 +00:00
|
|
|
|
Map(x => x.RegReaderType);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.PulsesMeter);
|
|
|
|
|
|
Map(x => x.PulsesMaster);
|
2016-01-03 01:05:35 +00:00
|
|
|
|
Map(x => x.PulsesPerLiter);
|
2026-02-19 16:58:26 +00:00
|
|
|
|
Map(x => x.PulsesPerKilogram);
|
|
|
|
|
|
Map(x => x.VolumeStart);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.VolumeEnd);
|
|
|
|
|
|
Map(x => x.VolumeMeter);
|
|
|
|
|
|
Map(x => x.VolumeRef);
|
2026-02-19 16:58:26 +00:00
|
|
|
|
Map(x => x.MassMeter);
|
|
|
|
|
|
Map(x => x.MassRef);
|
|
|
|
|
|
Map(x => x.TimestampStart);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.TimestampEnd);
|
|
|
|
|
|
Map(x => x.TestTime);
|
|
|
|
|
|
Map(x => x.Error);
|
2026-02-19 16:58:26 +00:00
|
|
|
|
Map(x => x.ErrorMass);
|
2021-07-02 14:22:46 +00:00
|
|
|
|
Map(x => x.TestDone);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
Map(x => x.Passed);
|
2026-02-19 16:58:26 +00:00
|
|
|
|
Map(x => x.PassedMass);
|
|
|
|
|
|
Map(x => x.QuantityUnits);
|
2021-06-27 13:52:05 +00:00
|
|
|
|
#if IPERL
|
2026-08-19 09:52:46 +00:00
|
|
|
|
Map(x => x.FlipMode);
|
2021-06-27 13:52:05 +00:00
|
|
|
|
Map(x => x.ExtraDataPath);
|
2021-07-02 14:22:46 +00:00
|
|
|
|
Map(x => x.X1);
|
|
|
|
|
|
Map(x => x.X2);
|
|
|
|
|
|
Map(x => x.X3);
|
|
|
|
|
|
Map(x => x.X4);
|
|
|
|
|
|
Map(x => x.X5);
|
|
|
|
|
|
Map(x => x.X6);
|
|
|
|
|
|
Map(x => x.X7);
|
|
|
|
|
|
Map(x => x.X8);
|
|
|
|
|
|
Map(x => x.X9);
|
2021-06-27 13:52:05 +00:00
|
|
|
|
#endif
|
2018-11-07 07:11:47 +00:00
|
|
|
|
#if ORACLE_DB
|
2021-07-02 14:22:46 +00:00
|
|
|
|
Map(x => x.ErrorBC).Column("LastError");
|
2018-11-07 07:11:47 +00:00
|
|
|
|
#endif
|
|
|
|
|
|
References(x => x.WaterMeter);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
References(x => x.TestRslt);
|
2026-09-09 13:04:49 +00:00
|
|
|
|
Map(x => x.Q3Channel);
|
2015-12-29 09:56:42 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|