54 lines
1.2 KiB
C#
54 lines
1.2 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using FluentNHibernate.Mapping;
|
|
using Config.Entities;
|
|
|
|
namespace Config.Mappings
|
|
{
|
|
class ProcedureMap : ClassMap<Procedure>
|
|
{
|
|
public ProcedureMap()
|
|
{
|
|
Id(x => x.Id);
|
|
Map(x => x.ItemNr);
|
|
Map(x => x.Name);
|
|
|
|
Map(x => x.Description);
|
|
Map(x => x.CreationUser);
|
|
Map(x => x.CreationTime);
|
|
Map(x => x.LastChgUser);
|
|
Map(x => x.LastChgTime);
|
|
Map(x => x.LongDescription);
|
|
|
|
Map(x => x.ProcedureState);
|
|
Map(x => x.Revision);
|
|
Map(x => x.PredecessorId);
|
|
Map(x => x.ObtainedByCopy);
|
|
|
|
Map(x => x.MetersKind);
|
|
Map(x => x.Watermeters);
|
|
Map(x => x.Protected);
|
|
Map(x => x.MustBeComplete);
|
|
Map(x => x.ManualCtrlDisabled);
|
|
|
|
Map(x => x.DataEntry);
|
|
Map(x => x.ResultsPrinter);
|
|
Map(x => x.ResultsWriter);
|
|
Map(x => x.TransitionStart);
|
|
Map(x => x.TransitionEnd);
|
|
|
|
Map(x => x.AltProcName);
|
|
Map(x => x.AltProcPeriod);
|
|
|
|
////Map(x => x.MetrologicalClass);
|
|
////HasOne(x => x.WMType);
|
|
HasMany(x => x.MoreParams)
|
|
.Cascade.All();
|
|
HasMany(x => x.Tests)
|
|
.OrderBy("ItemNr")
|
|
.Cascade.All();
|
|
}
|
|
}
|
|
}
|