Наследование: SimpleDbExpression
Пример #1
0
 protected override Expression VisitSimpleDbProjection(ProjectionExpression pex)
 {
     Expression qex = VisitSimpleDbQuery(pex.Source);
     return SimpleDbExpression.Project(
         (QueryExpression)qex,
         pex.Projector);
 }
Пример #2
0
 public static ProjectionExpression Rewrite(ProjectionExpression pex)
 {
     Expression projector = pex.Projector;
     if (projector is LambdaExpression)
     {
         projector = CreateProjector((LambdaExpression)projector);
     }
     else
     {
         projector = CreateDefaultProjector();
     }
     return new ProjectionExpression(
         pex.Source,
         projector
         );
 }
Пример #3
0
 protected override Expression VisitSimpleDbProjection(ProjectionExpression pex)
 {
     return this.AggregateAndReduce(pex);
 }
Пример #4
0
 protected override Expression VisitSimpleDbProjection(ProjectionExpression pex)
 {
     _projector = pex.Projector;
     VisitSimpleDbQuery(pex.Source);
     return pex;
 }
 protected virtual Expression VisitSimpleDbProjection(ProjectionExpression pex)
 {
     return pex;
 }
Пример #6
0
 protected override Expression VisitSimpleDbProjection(ProjectionExpression pex)
 {
     return SimpleDbExpression.Project(
         (QueryExpression)Visit(pex.Source),
         pex.Projector);
 }