This commit is contained in:
sunkaixuan
2017-11-01 14:00:38 +08:00
parent 20f6501008
commit 70157d92e9

View File

@@ -78,6 +78,8 @@ 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