mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 05:13:27 +08:00
-
This commit is contained in:
parent
f9133c0fe6
commit
99db4d6d87
@ -49,6 +49,11 @@ namespace OrmTest.Demo
|
||||
var t10 = db.Updateable<Student>()
|
||||
.UpdateColumns(it => new Student() { Name="a",CreateTime=DateTime.Now })
|
||||
.Where(it => it.Id == 11).ExecuteCommand();
|
||||
|
||||
//Rename
|
||||
db.MappingTables.Add("School", "Student");
|
||||
db.Updateable<School>().UpdateColumns(it => new School() { Name = "jack" }).Where(it => it.Id == 1).ExecuteCommand();
|
||||
//Update Student set Name='jack' Where Id=1
|
||||
}
|
||||
public static SqlSugarClient GetInstance()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user