Work in Progress
parent
b1ffb64e6c
commit
26a8982b2c
9
WaWi.cs
9
WaWi.cs
|
@ -46,11 +46,12 @@ namespace sharpwawi
|
|||
Console.WriteLine("UpdateScheme():");
|
||||
Mapper.UpdateScheme();
|
||||
|
||||
Random random = new Random();
|
||||
|
||||
Part[] parts = new Part[3];
|
||||
parts[0] = new Part("1P0001", "Ein Teil");
|
||||
parts[1] = new Part("1P0002", "Ein anderes Teil");
|
||||
parts[2] = new Part("1P0003", "Ein drittes Teil");
|
||||
parts[0] = new Part(String.Format("1P0001+{0}",random.Next()), "Ein Teil");
|
||||
parts[1] = new Part(String.Format("1P0002+{0}", random.Next()), "Ein anderes Teil");
|
||||
parts[2] = new Part(String.Format("1P0003+{0}", random.Next()), "Ein drittes Teil");
|
||||
|
||||
parts[0].ReplacedBy = parts[1];
|
||||
|
||||
|
@ -58,6 +59,8 @@ namespace sharpwawi
|
|||
Mapper.MappingInterface.SaveOrUpdate(parts[1]);
|
||||
Mapper.MappingInterface.SaveOrUpdate(parts[2]);
|
||||
|
||||
Entity[] entities = Mapper.MappingInterface.Load<Entity>();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue