mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Synchronization code
This commit is contained in:
@@ -270,6 +270,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
var result = InsertObjs.First();
|
var result = InsertObjs.First();
|
||||||
var identityKeys = GetIdentityKeys();
|
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)
|
if (identityKeys.Count == 0)
|
||||||
{
|
{
|
||||||
var snowColumn = this.EntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey && it.UnderType == UtilConstants.LongType);
|
var snowColumn = this.EntityInfo.Columns.FirstOrDefault(it => it.IsPrimarykey && it.UnderType == UtilConstants.LongType);
|
||||||
|
Reference in New Issue
Block a user