mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 06:03:09 +08:00
达梦 supports mandatory self-increment
This commit is contained in:
@@ -49,6 +49,11 @@ namespace SqlSugar
|
||||
{
|
||||
result = result.Replace(";select @@identity", "");
|
||||
}
|
||||
if (this.IsOffIdentity)
|
||||
{
|
||||
var tableName = this.GetTableNameString;
|
||||
result = $"SET IDENTITY_INSERT {tableName} ON;" + result.TrimEnd(';') + $";SET IDENTITY_INSERT {tableName} OFF"; ;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user