mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 13:03:43 +08:00
Add user test case
This commit is contained in:
@@ -15,7 +15,10 @@ namespace OrmTest
|
|||||||
var list=new List<Unitadfadsfa>() { new Unitadfadsfa() { Id=Guid.NewGuid(), Name="a" },
|
var list=new List<Unitadfadsfa>() { new Unitadfadsfa() { Id=Guid.NewGuid(), Name="a" },
|
||||||
new Unitadfadsfa() { Id=Guid.NewGuid(),Name="a" }};
|
new Unitadfadsfa() { Id=Guid.NewGuid(),Name="a" }};
|
||||||
var dt = db.Utilities.ListToDataTable(list);
|
var dt = db.Utilities.ListToDataTable(list);
|
||||||
db.Storageable(list).WhereColumns(it => it.Id).ExecuteCommand();
|
dt.TableName = "Unitadfadsfa";
|
||||||
|
var x=db.Storageable(dt).WhereColumns("id").ToStorage();
|
||||||
|
x.AsUpdateable.ExecuteCommand();
|
||||||
|
x.AsInsertable.ExecuteCommand();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public class Unitadfadsfa
|
public class Unitadfadsfa
|
||||||
|
Reference in New Issue
Block a user