mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
-
This commit is contained in:
parent
e2441f480d
commit
dfc31110dd
@ -118,6 +118,12 @@ new List<SugarParameter>() {
|
|||||||
var t10 = db.Insertable(insertObj).ExecuteCommand();
|
var t10 = db.Insertable(insertObj).ExecuteCommand();
|
||||||
|
|
||||||
var t11 = db.Insertable(new MyStudent() { Id = 1, Name = "张三" }).AS("Student").ToSql();
|
var t11 = db.Insertable(new MyStudent() { Id = 1, Name = "张三" }).AS("Student").ToSql();
|
||||||
|
base.Check(@"INSERT INTO [Student]
|
||||||
|
([Name])
|
||||||
|
VALUES
|
||||||
|
(@Name) ;SELECT SCOPE_IDENTITY();", new List<SugarParameter>() {
|
||||||
|
new SugarParameter("@Name","张三")
|
||||||
|
}, t11.Key, t11.Value, "Insert t11 error");
|
||||||
}
|
}
|
||||||
|
|
||||||
public SqlSugarClient GetInstance()
|
public SqlSugarClient GetInstance()
|
||||||
|
Loading…
Reference in New Issue
Block a user