Work in Progress

master
Harald Christian Joachim Wolff 2018-08-01 13:38:57 +02:00
parent 55ee558654
commit 0d860d7f37
1 changed files with 1 additions and 17 deletions

18
WaWi.cs
View File

@ -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();
}