Browse Source

Add demo

pull/25/head
sunkaixuan 2 years ago
parent
commit
6852efdccd
  1. 7
      Src/Asp.Net/PgSqlTest/Demo/Demo3_Insertable.cs

7
Src/Asp.Net/PgSqlTest/Demo/Demo3_Insertable.cs

@ -146,6 +146,13 @@ namespace OrmTest
dict.Add("Price", 1); dict.Add("Price", 1);
dict.Add("CustomId", null); dict.Add("CustomId", null);
db.Insertable(dict).AS("Order").ExecuteCommand(); db.Insertable(dict).AS("Order").ExecuteCommand();
var dict2 = new Dictionary<string, object>();
dict2.Add("name", "1");
dict2.Add("Price", 1);
dict2.Add("CustomId", null);
db.Insertable(dict).AS("Order").ExecuteReturnIdentity();
Console.WriteLine("#### Insertable End ####"); Console.WriteLine("#### Insertable End ####");
} }
} }

Loading…
Cancel
Save