Example #1
0
 protected override object Visit(OperandProperty theOperand)
 {
     if (_entityType.GetProperties().All(p => p.Name != theOperand.PropertyName))
     {
         var mappings = GridViewExtension.GetColumnFieldMapping(_entityType.Name);
         if (mappings != null && mappings.Any(m => m.FieldNameMapping == theOperand.PropertyName))
         {
             var mapping = mappings.First(m => m.FieldNameMapping == theOperand.PropertyName);
             theOperand.PropertyName = mapping.FiledClrPath;
         }
     }
     return(base.Visit(theOperand));
 }