mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 10:08:19 +08:00
Update PgSql
This commit is contained in:
@@ -42,7 +42,7 @@ namespace OrmTest.Demo
|
||||
|
||||
//Re Set Value
|
||||
var t8 = db.Updateable(updateObj)
|
||||
.ReSetValue(it => it.Name == (it.Name + 1)).ExecuteCommand();
|
||||
.ReSetValue(it => it.Name=="xx").ExecuteCommand();
|
||||
|
||||
//Where By Expression
|
||||
var t9 = db.Updateable(updateObj).Where(it => it.Id == 1).ExecuteCommand();
|
||||
|
@@ -63,8 +63,8 @@ namespace OrmTest.Demo
|
||||
|
||||
var dt = new Dictionary<string, object>();
|
||||
dt.Add("name", "1");
|
||||
dt.Add("CreateTime", null);
|
||||
var t66 = db.Insertable(dt).AS("student").ExecuteReturnIdentity();
|
||||
dt.Add("CreateTime", DateTime.Now);
|
||||
var t66 = db.Insertable(dt).AS("student").ExecuteCommand();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user