mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 12:47:57 +08:00
Synchronization code
This commit is contained in:
parent
e21aa62216
commit
4e87995e99
@ -91,7 +91,7 @@ namespace SqlSugar
|
||||
|
||||
batchInsetrSql.Append("(");
|
||||
batchInsetrSql.Append(columnsString);
|
||||
if (identities.HasValue())
|
||||
if (identities.HasValue()&& this.IsOffIdentity==false)
|
||||
{
|
||||
batchInsetrSql.Append("," + string.Join(",", identities.Select(it => Builder.GetTranslationColumnName(it.DbColumnName))));
|
||||
}
|
||||
@ -101,6 +101,8 @@ namespace SqlSugar
|
||||
batchInsetrSql.Append("(");
|
||||
insertColumns = string.Join(",", item.Select(it => GetDbColumn(it, FormatValue(it.Value, it.PropertyName))));
|
||||
batchInsetrSql.Append(insertColumns);
|
||||
if (this.IsOffIdentity == false)
|
||||
{
|
||||
if (identities.HasValue())
|
||||
{
|
||||
batchInsetrSql.Append(",");
|
||||
@ -118,6 +120,7 @@ namespace SqlSugar
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
batchInsetrSql.AppendLine(") ");
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user