Browse Source

Rename

pull/31/head
sunkaixuan 2 years ago
parent
commit
50b3232488
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarProvider.cs
  2. 4
      Src/Asp.Net/SqlSugar/Entities/ConnMoreSettings.cs
  3. 4
      Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs

4
Src/Asp.Net/SqlSugar/Abstract/SugarProvider/SqlSugarProvider.cs

@ -821,7 +821,7 @@ namespace SqlSugar
{
InitMappingInfo<T>();
DeleteableProvider<T> result = this.CreateDeleteable<T>();
if (this.Context.CurrentConnectionConfig?.MoreSettings?.IsAutoDeleteDataFilter == true)
if (this.Context.CurrentConnectionConfig?.MoreSettings?.IsAutoDeleteQueryFilter == true)
{
return result.EnableQueryFilter();
}
@ -933,7 +933,7 @@ namespace SqlSugar
{
var result = this.Context.Updateable(new T[] { new T() });
result.UpdateParameterIsNull = true;
if (this.Context.CurrentConnectionConfig?.MoreSettings?.IsAutoUpdateDataFilter == true)
if (this.Context.CurrentConnectionConfig?.MoreSettings?.IsAutoUpdateQueryFilter == true)
{
return result.EnableQueryFilter();
}

4
Src/Asp.Net/SqlSugar/Entities/ConnMoreSettings.cs

@ -20,7 +20,7 @@ namespace SqlSugar
public DateTime? DbMinDate { get; set; } = Convert.ToDateTime("1900-01-01");
public bool IsNoReadXmlDescription { get; set; }
public bool SqlServerCodeFirstNvarchar { get; set; }
public bool IsAutoUpdateDataFilter { get; set; }
public bool IsAutoDeleteDataFilter { get; set; }
public bool IsAutoUpdateQueryFilter { get; set; }
public bool IsAutoDeleteQueryFilter { get; set; }
}
}

4
Src/Asp.Net/SqlSugar/Utilities/UtilMethods.cs

@ -199,8 +199,8 @@ namespace SqlSugar
IsNoReadXmlDescription=it.MoreSettings.IsNoReadXmlDescription,
SqlServerCodeFirstNvarchar=it.MoreSettings.SqlServerCodeFirstNvarchar,
IsAutoToUpper=it.MoreSettings.IsAutoToUpper,
IsAutoDeleteDataFilter=it.MoreSettings.IsAutoDeleteDataFilter,
IsAutoUpdateDataFilter = it.MoreSettings.IsAutoUpdateDataFilter,
IsAutoDeleteQueryFilter=it.MoreSettings.IsAutoDeleteQueryFilter,
IsAutoUpdateQueryFilter = it.MoreSettings.IsAutoUpdateQueryFilter,
},
SqlMiddle = it.SqlMiddle == null ? null : new SqlMiddle

Loading…
Cancel
Save