Esempio n. 1
0
        private IQueryBuilderRecord ApplyDirection(IQueryBuilderRecord record)
        {
            var recorder = new QueryBuilderRecorder(record);

            recorder.Add(ctx => ApplyDirection(ctx.CurrentQuery));
            return(recorder.Record);
        }
 private static void RecordField(QueryBuilderRecorder recorder, FieldInfo field)
 {
     recorder.Add(ctx =>
                      {
                          ctx.Descend(field.Name);
                          ctx.PushDescendigFieldEnumType(field.FieldType.IsEnum ? field.FieldType : null);
                      });
 }
Esempio n. 3
0
 private static void RecordField(QueryBuilderRecorder recorder, FieldInfo field)
 {
     recorder.Add(ctx =>
     {
         ctx.Descend(field.Name);
         ctx.PushDescendigFieldEnumType(field.FieldType.IsEnum ? field.FieldType : null);
     });
 }
 private IQueryBuilderRecord ApplyDirection(IQueryBuilderRecord record)
 {
     var recorder = new QueryBuilderRecorder(record);
     recorder.Add(ctx => ApplyDirection(ctx.CurrentQuery));
     return recorder.Record;
 }