MonitoringDB --> TracingDB, TBF ver. 2.18.981
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using FluentNHibernate.Mapping;
|
||||
|
||||
namespace TracingDB.Mappings
|
||||
{
|
||||
class Option1Map : ClassMap<Entities.Option1>
|
||||
{
|
||||
public Option1Map()
|
||||
{
|
||||
Id(x => x.Id);
|
||||
Map(x => x.ItemNr);
|
||||
Map(x => x.Name);
|
||||
Map(x => x.OraDBType);
|
||||
Map(x => x.Description);
|
||||
Map(x => x.CodeType);
|
||||
Map(x => x.CodeForm);
|
||||
Map(x => x.CodeLocation);
|
||||
Map(x => x.LifetimeManagement);
|
||||
Map(x => x.Enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using FluentNHibernate.Mapping;
|
||||
|
||||
namespace TracingDB.Mappings
|
||||
{
|
||||
class Option2Map : ClassMap<Entities.Option2>
|
||||
{
|
||||
public Option2Map()
|
||||
{
|
||||
Id(x => x.Id);
|
||||
Map(x => x.ItemNr);
|
||||
Map(x => x.Name);
|
||||
Map(x => x.OraDBType);
|
||||
Map(x => x.Description);
|
||||
Map(x => x.CodeType);
|
||||
Map(x => x.CodeForm);
|
||||
Map(x => x.CodeLocation);
|
||||
Map(x => x.LifetimeManagement);
|
||||
Map(x => x.Enabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using FluentNHibernate.Mapping;
|
||||
|
||||
namespace TracingDB.Mappings
|
||||
{
|
||||
class PartMap : ClassMap<Entities.Part>
|
||||
{
|
||||
public PartMap()
|
||||
{
|
||||
Id(x => x.Id);
|
||||
Map(x => x.Name);
|
||||
Map(x => x.OraDBType);
|
||||
Map(x => x.Description);
|
||||
Map(x => x.CodeType);
|
||||
Map(x => x.CodeForm);
|
||||
Map(x => x.CodeLocation);
|
||||
Map(x => x.LifetimeManagement);
|
||||
Map(x => x.StepNumber);
|
||||
|
||||
References(x => x.Process);
|
||||
References(x => x.Workstep);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using FluentNHibernate.Mapping;
|
||||
|
||||
namespace TracingDB.Mappings
|
||||
{
|
||||
class ProcessMap : ClassMap<Entities.Process>
|
||||
{
|
||||
public ProcessMap()
|
||||
{
|
||||
Id(x => x.Id);
|
||||
Map(x => x.ItemNr);
|
||||
Map(x => x.Name);
|
||||
Map(x => x.Description);
|
||||
Map(x => x.ReleaseStatus);
|
||||
Map(x => x.TimeStamp);
|
||||
Map(x => x.UserName);
|
||||
|
||||
HasMany(x => x.Parts)
|
||||
.OrderBy("Name")
|
||||
.Cascade.All();
|
||||
HasMany(x => x.Worksteps)
|
||||
.OrderBy("WorkstepNr")
|
||||
.Cascade.All();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using FluentNHibernate.Mapping;
|
||||
|
||||
namespace TracingDB.Mappings
|
||||
{
|
||||
class RecordMap : ClassMap<Entities.Record>
|
||||
{
|
||||
public RecordMap()
|
||||
{
|
||||
Id(x => x.Id);
|
||||
Map(x => x.Code);
|
||||
Map(x => x.TimeStamp);
|
||||
|
||||
References(x => x.Part);
|
||||
References(x => x.ReferenceRecord);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using FluentNHibernate.Mapping;
|
||||
|
||||
namespace TracingDB.Mappings
|
||||
{
|
||||
class ReferenceRecordMap : ClassMap<Entities.ReferenceRecord>
|
||||
{
|
||||
public ReferenceRecordMap()
|
||||
{
|
||||
Id(x => x.Id);
|
||||
Map(x => x.Code);
|
||||
Map(x => x.TimeStamp);
|
||||
Map(x => x.UserName);
|
||||
Map(x => x.Workplace);
|
||||
Map(x => x.Result);
|
||||
|
||||
References(x => x.Process);
|
||||
References(x => x.Workstep);
|
||||
HasMany(x => x.Records)
|
||||
.Cascade.All();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using FluentNHibernate.Mapping;
|
||||
|
||||
namespace TracingDB.Mappings
|
||||
{
|
||||
class WorkstepMap : ClassMap<Entities.Workstep>
|
||||
{
|
||||
public WorkstepMap()
|
||||
{
|
||||
Id(x => x.Id);
|
||||
Map(x => x.WorkstepNr);
|
||||
Map(x => x.Name);
|
||||
Map(x => x.Description);
|
||||
Map(x => x.CheckPartNr);
|
||||
Map(x => x.AllowRepairs);
|
||||
|
||||
References(x => x.Process);
|
||||
References(x => x.ReferencePart);
|
||||
HasMany(x => x.Parts)
|
||||
.OrderBy("StepNumber")
|
||||
.Cascade.All();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user