mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-17 19:37:34 +08:00
Add demo
This commit is contained in:
parent
76b20bb7db
commit
ae9f7c9ab6
@ -109,6 +109,16 @@ namespace OrmTest
|
|||||||
.Where((x, y) => x.Id == 1)
|
.Where((x, y) => x.Id == 1)
|
||||||
.ExecuteCommand();
|
.ExecuteCommand();
|
||||||
|
|
||||||
|
db.Updateable<Order>()
|
||||||
|
.Where(it=>it.Id==1)
|
||||||
|
.SetColumns(it =>new Order
|
||||||
|
{
|
||||||
|
Name=it.Name,
|
||||||
|
CustomId=0,
|
||||||
|
Price = (decimal) (it.CreateTime - it.CreateTime).TotalDays
|
||||||
|
})
|
||||||
|
.ExecuteCommand();
|
||||||
|
|
||||||
/*** 3.by Dictionary ***/
|
/*** 3.by Dictionary ***/
|
||||||
var dt = new Dictionary<string, object>();
|
var dt = new Dictionary<string, object>();
|
||||||
dt.Add("id", 1);
|
dt.Add("id", 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user