/// <summary> /// Creates a new instance of <see cref="RelationalQueryFilterDefiningQueryRewritingConvention" />. /// </summary> /// <param name="dependencies"> Parameter object containing dependencies for this convention. </param> /// <param name="relationalDependencies"> Parameter object containing relational dependencies for this convention. </param> public RelationalQueryFilterDefiningQueryRewritingConvention( [NotNull] ProviderConventionSetBuilderDependencies dependencies, [NotNull] RelationalConventionSetBuilderDependencies relationalDependencies) : base(dependencies) { DbSetAccessRewriter = new RelationalDbSetAccessRewritingExpressionVisitor(Dependencies.ContextType); }
/// <summary> /// Creates a new instance of <see cref="RelationalQueryFilterRewritingConvention" />. /// </summary> /// <param name="dependencies">Parameter object containing dependencies for this convention.</param> /// <param name="relationalDependencies"> Parameter object containing relational dependencies for this convention.</param> public RelationalQueryFilterRewritingConvention( ProviderConventionSetBuilderDependencies dependencies, RelationalConventionSetBuilderDependencies relationalDependencies) : base(dependencies) { RelationalDependencies = relationalDependencies; DbSetAccessRewriter = new RelationalDbSetAccessRewritingExpressionVisitor(Dependencies.ContextType); }