/// <summary> /// <para> /// Creates the service dependencies parameter object for a <see cref="MongoDbEntityQueryModelVisitorFactory" />. /// </para> /// <para> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </para> /// <para> /// Do not call this constructor directly from either provider or application code as it may change /// as new dependencies are added. Instead, use this type in your constructor so that an instance /// will be created and injected automatically by the dependency injection container. To create /// an instance with some dependent services replaced, first resolve the object from the dependency /// injection container, then replace selected services using the 'With...' methods. Do not call /// the constructor at any point in this process. /// </para> /// </summary> /// <param name="mongoDbDenormalizedCollectionCompensatingVisitorFactory"> /// The <see cref="IMongoDbDenormalizedCollectionCompensatingVisitorFactory" /> to be used when processing the query. /// </param> public MongoDbEntityQueryModelVisitorDependencies( [NotNull] IMongoDbDenormalizedCollectionCompensatingVisitorFactory mongoDbDenormalizedCollectionCompensatingVisitorFactory ) { MongoDbDenormalizedCollectionCompensatingVisitorFactory = Check.NotNull(mongoDbDenormalizedCollectionCompensatingVisitorFactory, nameof(mongoDbDenormalizedCollectionCompensatingVisitorFactory)); }
/// <inheritdoc /> public MongoDbEntityQueryModelVisitor( [NotNull] EntityQueryModelVisitorDependencies entityQueryModelVisitorDependencies, [NotNull] QueryCompilationContext queryCompilationContext, [NotNull] MongoDbEntityQueryModelVisitorDependencies mongoDbEntityQueryModelVisitorDependencies) : base( Check.NotNull(entityQueryModelVisitorDependencies, nameof(entityQueryModelVisitorDependencies)), Check.NotNull(queryCompilationContext, nameof(queryCompilationContext)) ) { _projectionExpressionVisitorFactory = entityQueryModelVisitorDependencies .ProjectionExpressionVisitorFactory; _mongoDbDenormalizedCollectionCompensatingVisitorFactory = Check.NotNull(mongoDbEntityQueryModelVisitorDependencies, nameof(mongoDbEntityQueryModelVisitorDependencies)) .MongoDbDenormalizedCollectionCompensatingVisitorFactory; }