Browse Source

Update query filter

pull/40/head
sunkaixuan 1 year ago
parent
commit
a1b8df260f
  1. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

2
Src/Asp.NetCore2/SqlSugar/Abstract/SqlBuilderProvider/QueryBuilder.cs

@ -554,7 +554,7 @@ namespace SqlSugar
private string ReplaceFilterColumnName(string sql, Type filterType,string shortName=null)
{
foreach (var column in this.Context.EntityMaintenance.GetEntityInfo(filterType).Columns.Where(it => it.IsIgnore == false))
foreach (var column in this.Context.EntityMaintenance.GetEntityInfoWithAttr(filterType).Columns.Where(it => it.IsIgnore == false))
{
if (shortName == null)
{

Loading…
Cancel
Save