mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update SqlServer batch insert
This commit is contained in:
@@ -162,7 +162,12 @@ namespace SqlSugar
|
||||
pageIndex++;
|
||||
batchInsetrSql.Append("\r\n;\r\n");
|
||||
}
|
||||
return batchInsetrSql.ToString();
|
||||
var result= batchInsetrSql.ToString();
|
||||
if (this.Context.CurrentConnectionConfig.DbType == DbType.SqlServer)
|
||||
{
|
||||
result += "select @@identity;";
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
public virtual object FormatValue(object value)
|
||||
|
Reference in New Issue
Block a user