public void Accept(IVisitor visitor) { if (Index > 0) { visitor.DuringFields(); } Field.Accept(visitor); }
public static IOnResult <T, TMe> OnId <T, TMe, TKey>(this IOnTarget <T, TMe> onTarget, Expression <Func <T, TKey> > expression) { onTarget.QueryBuilder.StringBuilder.AppendAfterSpace("ON "); var table = onTarget.QueryBuilder.GetTable(expression, false); Field tableColumn = new Field(table.Parent, table.ParentMember); tableColumn.Accept(onTarget.QueryBuilder.StringBuilder); onTarget.QueryBuilder.StringBuilder.Append("="); Field tableColumn1 = new Field(table, table.Mapping.Key); tableColumn1.Accept(onTarget.QueryBuilder.StringBuilder); return((IOnResult <T, TMe>)onTarget); }
public static IEdmTypeReference CreateEdmType(Field field) { return(field.Accept(Instance)); }
public static object ConvertValue(Field field, JToken json) { return(field.Accept(new JsonValueConverter(json))); }