mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Synchronization code
This commit is contained in:
parent
e91a2fe689
commit
db2f1ea7a2
@ -270,6 +270,14 @@ namespace SqlSugar
|
||||
{
|
||||
var result = InsertObjs.First();
|
||||
var identityKeys = GetIdentityKeys();
|
||||
if (this.Context?.CurrentConnectionConfig?.MoreSettings?.EnableOracleIdentity == true)
|
||||
{
|
||||
var identity=this.EntityInfo.Columns.FirstOrDefault(it => it.IsIdentity);
|
||||
if (identity != null)
|
||||
{
|
||||
identityKeys = new List<string>() { identity.DbColumnName };
|
||||
}
|
||||
}
|
||||
if (identityKeys.Count == 0)
|
||||
{
|
||||
var snowColumn = this.EntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey && it.UnderType == UtilConstants.LongType);
|
||||
|
Loading…
Reference in New Issue
Block a user