|
|
@ -46,7 +46,7 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
var member = (exp as MemberExpression); |
|
|
|
var memberParent = member.Expression; |
|
|
|
if (memberParent != null) |
|
|
|
if (memberParent != null&& this.Context?.SugarContext?.Context!=null) |
|
|
|
{ |
|
|
|
var entity = this.Context.SugarContext.Context.EntityMaintenance.GetEntityInfo(memberParent.Type); |
|
|
|
var columnInfo = entity.Columns.FirstOrDefault(it => it.PropertyName == member.Member.Name); |
|
|
|