25 lines
562 B
C#
25 lines
562 B
C#
using FluentNHibernate.Mapping;
|
|
|
|
namespace SharedDatabase.Mappings
|
|
{
|
|
class PartMap : ClassMap<Entities.Part>
|
|
{
|
|
public PartMap()
|
|
{
|
|
Id(x => x.Id);
|
|
Map(x => x.Name);
|
|
Map(x => x.Description);
|
|
Map(x => x.CodeType);
|
|
Map(x => x.CodeForm);
|
|
Map(x => x.CodeLocation);
|
|
Map(x => x.DefaultCode);
|
|
Map(x => x.LifetimeManagement);
|
|
Map(x => x.StepNumber);
|
|
|
|
References(x => x.Workflow)
|
|
.Column("Process_id");
|
|
References(x => x.Workstep);
|
|
}
|
|
}
|
|
}
|