private static KeyValuePair <string, object>[] TryResolveProperty( MappingResolverStub mappingResolver, SqlEntityExpression sqlEntityDefinition, PropertyInfo member, object entity) { Expression expression; try { expression = mappingResolver.ResolveMemberExpression(sqlEntityDefinition, member); } catch (UnmappedItemException) { return(new KeyValuePair <string, object> [0]); } var memberValue = member.GetValue(entity, null); return(TryResolvePropertyExpression(mappingResolver, expression, memberValue).ToArray()); }
private static KeyValuePair<string, object>[] TryResolveProperty ( MappingResolverStub mappingResolver, SqlEntityExpression sqlEntityDefinition, PropertyInfo member, object entity) { Expression expression; try { expression = mappingResolver.ResolveMemberExpression (sqlEntityDefinition, member); } catch (UnmappedItemException) { return new KeyValuePair<string, object>[0]; } var memberValue = member.GetValue (entity, null); return TryResolvePropertyExpression(mappingResolver, expression, memberValue).ToArray(); }