2015-04-15 18:32:56 +00:00
|
|
|
|
///
|
2023-11-09 07:38:08 +00:00
|
|
|
|
/// Copyright (c) 2013-2023 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 ComponentMap : ClassMap<Component>
|
|
|
|
|
|
{
|
|
|
|
|
|
public ComponentMap()
|
|
|
|
|
|
{
|
|
|
|
|
|
Id(x => x.Id);
|
|
|
|
|
|
Map(x => x.Name);
|
|
|
|
|
|
Map(x => x.ClassName);
|
2021-02-24 16:42:50 +00:00
|
|
|
|
Map(x => x.Parent);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
Map(x => x.ItemNr);
|
2021-02-24 16:42:50 +00:00
|
|
|
|
Map(x => x.DebugMode);
|
|
|
|
|
|
Map(x => x.LogLevel);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
Map(x => x.Parameters)
|
|
|
|
|
|
.CustomType("StringClob")
|
2023-11-09 07:38:08 +00:00
|
|
|
|
.CustomSqlType("varchar(12000)");
|
2014-07-28 07:54:35 +00:00
|
|
|
|
HasMany(x => x.Corrections)
|
|
|
|
|
|
.OrderBy("Measurement")
|
|
|
|
|
|
.Cascade.All();
|
2019-09-17 08:27:23 +00:00
|
|
|
|
HasMany(x => x.Uncertainties)
|
|
|
|
|
|
.OrderBy("Measurement")
|
|
|
|
|
|
.Cascade.All();
|
|
|
|
|
|
}
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|