private static void RecordField(QueryBuilderRecorder recorder, FieldInfo field)
 {
     recorder.Add(ctx =>
                      {
                          ctx.Descend(field.Name);
                          ctx.PushDescendigFieldEnumType(field.FieldType.IsEnum ? field.FieldType : null);
                      });
 }
Ejemplo n.º 2
0
 protected static void AnalyseMethod(QueryBuilderRecorder recorder, MethodInfo method)
 {
     try
     {
         var analyser = new ReflectionMethodAnalyser(method);
         analyser.Run(recorder);
     }
     catch (Exception e)
     {
         throw new LinqQueryException(e.Message, e);
     }
 }
 public void Run(QueryBuilderRecorder recorder)
 {
     RecordField(recorder, GetBackingField(_method));
 }
 private IQueryBuilderRecord ApplyDirection(IQueryBuilderRecord record)
 {
     var recorder = new QueryBuilderRecorder(record);
     recorder.Add(ctx => ApplyDirection(ctx.CurrentQuery));
     return recorder.Record;
 }
Ejemplo n.º 5
0
 public void Run(QueryBuilderRecorder recorder)
 {
     RecordField(recorder, GetBackingField(_method));
 }
Ejemplo n.º 6
0
 private IQueryBuilderRecord CreateRecord(Expression expression)
 {
     Recorder = new QueryBuilderRecorder();
     Visit(expression);
     return Recorder.Record;
 }
Ejemplo n.º 7
0
 private IQueryBuilderRecord CreateRecord(Expression expression)
 {
     Recorder = new QueryBuilderRecorder();
     Visit(expression);
     return(Recorder.Record);
 }