Browse Source

-

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
6ea38fa85c
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs

2
Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs

@ -78,8 +78,6 @@ namespace SqlSugar
{
var isAny = this.GetEntityInfo<T>().Columns.Any(it => it.PropertyName.Equals(propertyName, StringComparison.CurrentCultureIgnoreCase));
Check.Exception(!isAny, "Property " + propertyName + " is Invalid");
if (propertyName.Contains(','))
propertyName = propertyName.ToSqlFilter();
var typeName = typeof(T).Name;
if (this.Context.MappingColumns == null || this.Context.MappingColumns.Count == 0) return propertyName;
else

Loading…
Cancel
Save