private static void RecordField(QueryBuilderRecorder recorder, FieldInfo field)
 {
     recorder.Add(ctx =>
                      {
                          ctx.Descend(field.Name);
                          ctx.PushDescendigFieldEnumType(field.FieldType.IsEnum ? field.FieldType : null);
                      });
 }
 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;
 }
Exemple #5
0
 public void Run(QueryBuilderRecorder recorder)
 {
     RecordField(recorder, GetBackingField(_method));
 }
 private IQueryBuilderRecord CreateRecord(Expression expression)
 {
     Recorder = new QueryBuilderRecorder();
     Visit(expression);
     return Recorder.Record;
 }
Exemple #7
0
 private IQueryBuilderRecord CreateRecord(Expression expression)
 {
     Recorder = new QueryBuilderRecorder();
     Visit(expression);
     return(Recorder.Record);
 }