Work in Progress
parent
55ee558654
commit
0d860d7f37
18
WaWi.cs
18
WaWi.cs
|
@ -43,23 +43,7 @@ namespace sharpwawi
|
|||
private void TestMapper()
|
||||
{
|
||||
Console.WriteLine("TestMapper():");
|
||||
|
||||
Table table = Table.GetOrCreate("HWO");
|
||||
new Column(table, "id", typeof(Guid));
|
||||
new Column(table, "name", typeof(string));
|
||||
new Column(table, "salery", typeof(double));
|
||||
|
||||
Row row = new Row(table);
|
||||
|
||||
row["id"] = Guid.NewGuid();
|
||||
row["name"] = "Harald Wolff";
|
||||
row["salery"] = 12.34;
|
||||
|
||||
Mapper.AcquireTransaction();
|
||||
Mapper.SQLBuilder.Update(row);
|
||||
|
||||
|
||||
Mapper.RollbackTransaction();
|
||||
Mapper.UpdateScheme();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue