42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
using FluentNHibernate.Mapping;
|
|
using Results.Entities;
|
|
|
|
namespace Results.Mappings
|
|
{
|
|
class TestRsltCalibFactorMap : ClassMap<TestRsltCalibFactor>
|
|
{
|
|
public TestRsltCalibFactorMap()
|
|
{
|
|
Id(x => x.Id);
|
|
|
|
References(x => x.TestRslt)
|
|
.Column("TestRsltId")
|
|
.Not.Nullable();
|
|
|
|
Map(x => x.CalibFactorIndex).Not.Nullable();
|
|
Map(x => x.IsCalibFactorValid).Not.Nullable();
|
|
|
|
Map(x => x.BaseCalibFactor).Not.Nullable();
|
|
Map(x => x.CalculatedCalibFactor).Not.Nullable();
|
|
|
|
Map(x => x.Stored).Not.Nullable();
|
|
|
|
Map(x => x.ErrorStr)
|
|
.Length(240)
|
|
.Nullable();
|
|
|
|
Map(x => x.TimeStart).Not.Nullable();
|
|
Map(x => x.TimeEnd).Not.Nullable();
|
|
|
|
Map(x => x.CalibRawStart).Not.Nullable();
|
|
Map(x => x.CalibRawEnd).Not.Nullable();
|
|
|
|
Map(x => x.Error).Not.Nullable();
|
|
|
|
Map(x => x.VolumeStart).Not.Nullable();
|
|
Map(x => x.VolumeEnd).Not.Nullable();
|
|
|
|
|
|
}
|
|
}
|
|
} |