75 lines
2.0 KiB
C#
75 lines
2.0 KiB
C#
///
|
|
/// Copyright (c) 2015-2021 Sensus Slovensko a.s.
|
|
///
|
|
using FluentNHibernate.Mapping;
|
|
using Results.Entities;
|
|
|
|
namespace Results.Mappings
|
|
{
|
|
class WaterMeterMap : ClassMap<WaterMeter>
|
|
{
|
|
public WaterMeterMap()
|
|
{
|
|
Id(x => x.Id);
|
|
Map(x => x.SerialNr);
|
|
Map(x => x.SerialNrAux);
|
|
Map(x => x.RadioAddress);
|
|
Map(x => x.PurchaseOrder);
|
|
Map(x => x.YearOfProduction);
|
|
Map(x => x.WMPosition);
|
|
Map(x => x.EndState);
|
|
Map(x => x.EndStateAux);
|
|
Map(x => x.QRise);
|
|
Map(x => x.QFall);
|
|
Map(x => x.ErrorFlags);
|
|
Map(x => x.InfoFlags);
|
|
Map(x => x.Passed);
|
|
Map(x => x.ResultCode);
|
|
Map(x => x.ArchivePath);
|
|
Map(x => x.Remark)
|
|
.CustomType("StringClob")
|
|
.CustomSqlType("varchar(2000)");
|
|
#if IPERL
|
|
Map(x => x.OrigCalibFactor);
|
|
Map(x => x.CalibFactor);
|
|
Map(x => x.OrigCalibFactorLNA);
|
|
Map(x => x.CalibFactorLNA);
|
|
Map(x => x.Q2ErrWOCorrection);
|
|
Map(x => x.Q2CorrRL);
|
|
Map(x => x.Q2CorrLR);
|
|
Map(x => x.Q2CorrFlowRight);
|
|
Map(x => x.Diff2Hz8Hz);
|
|
Map(x => x.Hz2CorrectionDone);
|
|
Map(x => x.Hz2Correction);
|
|
Map(x => x.FWVersion);
|
|
#endif
|
|
#if TURA_SPECIAL
|
|
Map(x => x.RadioAddress);
|
|
Map(x => x.PaletteNr);
|
|
Map(x => x.UmkartonNr);
|
|
Map(x => x.ProdTestBench);
|
|
Map(x => x.ProdWMPosition);
|
|
Map(x => x.ProdUserName);
|
|
Map(x => x.ProdPurchaseOrder);
|
|
Map(x => x.ProdPassed);
|
|
Map(x => x.ProdResultCode);
|
|
Map(x => x.ProdQ2CorrRL);
|
|
Map(x => x.ProdQ2CorrLR);
|
|
#endif
|
|
#if ORACLE_DB
|
|
Map(x => x.AssignedSerialNr);
|
|
Map(x => x.Prefix);
|
|
Map(x => x.Suffix);
|
|
Map(x => x.CompleteSerialNr);
|
|
Map(x => x.Pruefindex);
|
|
Map(x => x.HydrPruefung);
|
|
Map(x => x.WMTypeRevision);
|
|
#endif
|
|
References(x => x.WaterMeterData);
|
|
References(x => x.Batch);
|
|
HasMany(x => x.MeterTestRslts)
|
|
.Cascade.All();
|
|
}
|
|
}
|
|
}
|