Work in Progess
parent
6b17bd95a1
commit
f731332d8a
4
WaWi.cs
4
WaWi.cs
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue