Beispiel #1
0
 public DefaultComposingExpressionVisitorProvider(
     TranslatabilityAnalyzingExpressionVisitor translatabilityAnalyzingExpressionVisitor,
     IRewritingExpressionVisitorProvider rewritingExpressionVisitorProvider,
     IProviderSpecificRewritingExpressionVisitorProvider providerSpecificRewritingExpressionVisitorProvider)
 {
     this.translatabilityAnalyzingExpressionVisitor          = translatabilityAnalyzingExpressionVisitor ?? throw new ArgumentNullException(nameof(translatabilityAnalyzingExpressionVisitor));
     this.rewritingExpressionVisitorProvider                 = rewritingExpressionVisitorProvider ?? throw new ArgumentNullException(nameof(rewritingExpressionVisitorProvider));
     this.providerSpecificRewritingExpressionVisitorProvider = providerSpecificRewritingExpressionVisitorProvider ?? throw new ArgumentNullException(nameof(providerSpecificRewritingExpressionVisitorProvider));
 }
 public EFCoreComposingExpressionVisitorProvider(
     ICurrentDbContext currentDbContext,
     TranslatabilityAnalyzingExpressionVisitor translatabilityAnalyzingExpressionVisitor,
     IRewritingExpressionVisitorProvider rewritingExpressionVisitorProvider,
     IProviderSpecificRewritingExpressionVisitorProvider providerSpecificRewritingExpressionVisitor)
 {
     this.currentDbContext = currentDbContext ?? throw new ArgumentNullException(nameof(currentDbContext));
     this.translatabilityAnalyzingExpressionVisitor  = translatabilityAnalyzingExpressionVisitor ?? throw new ArgumentNullException(nameof(translatabilityAnalyzingExpressionVisitor));
     this.rewritingExpressionVisitorProvider         = rewritingExpressionVisitorProvider ?? throw new ArgumentNullException(nameof(rewritingExpressionVisitorProvider));
     this.providerSpecificRewritingExpressionVisitor = providerSpecificRewritingExpressionVisitor ?? throw new ArgumentNullException(nameof(providerSpecificRewritingExpressionVisitor));
 }