mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-09 01:44:45 +08:00
Add demo
This commit is contained in:
@@ -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 ####");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user