Browse Source

Update demo

pull/14/MERGE
sunkaixuan 3 years ago
parent
commit
b3813804c3
  1. 2
      Src/Asp.Net/SqlServerTest/Demo/Demo8_Saveable.cs

2
Src/Asp.Net/SqlServerTest/Demo/Demo8_Saveable.cs

@ -32,7 +32,7 @@ namespace OrmTest
//insert or update
var x1 = db.Storageable<Order>(new Order() { Id = 1, Name = "jack" }).ExecuteCommand();
var x11 = db.Storageable<Order>(new Order() { Id = 1, Name = "jack" }).ExecuteCommandAsync().GetAwaiter().GetResult();
//insert or update
var x= db.Storageable<Order>(new Order() { Id=1, Name="jack" }).ToStorage();
x.AsUpdateable.ExecuteCommand();

Loading…
Cancel
Save