mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 10:55:02 +08:00
-
This commit is contained in:
@@ -70,6 +70,8 @@ namespace SqlSugar
|
||||
private void PreToSql()
|
||||
{
|
||||
#region Identities
|
||||
if (this.Context.IsSystemTablesConfig)
|
||||
{
|
||||
List<string> identities = Db.DbMaintenance.GetIsIdentities(this.InsertBuilder.TableName);
|
||||
if (identities != null && identities.Any())
|
||||
{
|
||||
@@ -79,6 +81,10 @@ namespace SqlSugar
|
||||
return !identities.Any(i => it.ColumnName.Equals(i, StringComparison.CurrentCultureIgnoreCase));
|
||||
}).ToList();
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region IgnoreColumns
|
||||
|
||||
@@ -15,6 +15,16 @@ namespace SqlSugar
|
||||
/// </summary>
|
||||
public partial class SqlSugarClient : SqlSugarAccessory, IDisposable
|
||||
{
|
||||
#region Properties
|
||||
public bool IsSystemTablesConfig
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.CurrentConnectionConfig is SystemTablesConfig;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region constructor
|
||||
/// <summary>
|
||||
/// If you have system table permissions, use this
|
||||
|
||||
Reference in New Issue
Block a user