public void Accept(IVisitor visitor)
 {
     if (Index > 0)
     {
         visitor.DuringFields();
     }
     Field.Accept(visitor);
 }
示例#2
0
        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);
        }
示例#3
0
 public static IEdmTypeReference CreateEdmType(Field field)
 {
     return(field.Accept(Instance));
 }
示例#4
0
 public static object ConvertValue(Field field, JToken json)
 {
     return(field.Accept(new JsonValueConverter(json)));
 }