Work in Progess

master
Harald Wolff 2018-09-20 10:41:26 +02:00
parent 6b17bd95a1
commit f731332d8a
3 changed files with 10 additions and 1 deletions

View File

@ -32,7 +32,11 @@ namespace sharpwawi
private void PrepareMapper()
{
Mapper = new Mapper(new PostgresAdapter("demo", "feuerbach.lupus", "demo", "demo"));
Mapper.Register(typeof(Entity));
Mapper.Register(typeof(Part));
Mapper.Register(typeof(PartAssembly));
Mapper.Prepare();
Mapper.StorageAdapter.Setup(Mapper);
}

View File

@ -8,6 +8,7 @@ namespace sharpwawi.models
[MappingConstraint(FieldMappingConstraint = MappingConstraints.ANNOTATEDONLY,PropertyMappingConstraint = MappingConstraints.ANNOTATEDONLY)]
public class Part : Entity
{
[MapManyToOne(ForeignField = "Part", SaveRecursive = true)]
public ISet<PartAssembly> Assemblies { get; private set; } = new HashSet<PartAssembly>();
[Mapped]

View File

@ -37,8 +37,12 @@ td {
padding-right: 20px;
padding-top: 5px;
padding-bottom: 3px;
border-bottom: 1px solid #6fb9df;
}
border-bottom: 1px dotted black;
td + td {
border-left: 1px solid #b4d9ec;
padding-left: 5px;
}
thead > tr > td{