mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 21:19:34 +08:00
达梦 supports mandatory self-increment
This commit is contained in:
parent
840a54b9e4
commit
e113e9a4e5
@ -49,6 +49,11 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
result = result.Replace(";select @@identity", "");
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user