/// <summary>
 ///     Clones this dependency parameter object with one service replaced.
 /// </summary>
 /// <param name="coreSingletonOptions"> A replacement for the current dependency of this type. </param>
 /// <returns> A new parameter object with the given service replaced. </returns>
 public RelationalShapedQueryCompilingExpressionVisitorDependencies With(
     [NotNull] ICoreSingletonOptions coreSingletonOptions)
 => new RelationalShapedQueryCompilingExpressionVisitorDependencies(
     QuerySqlGeneratorFactory,
     SqlExpressionFactory,
     ParameterNameGeneratorFactory,
     RelationalParameterBasedQueryTranslationPostprocessorFactory,
     coreSingletonOptions);
Exemple #2
0
        public RelationalShapedQueryCompilingExpressionVisitorDependencies With(
            [NotNull] ICoreSingletonOptions coreSingletonOptions)
        => new RelationalShapedQueryCompilingExpressionVisitorDependencies(
            QuerySqlGeneratorFactory,
#pragma warning disable CS0618 // Type or member is obsolete
            SqlExpressionFactory,
            ParameterNameGeneratorFactory,
#pragma warning restore CS0618 // Type or member is obsolete
            RelationalParameterBasedSqlProcessorFactory,
            coreSingletonOptions);
        public RelationalValueBufferFactoryDependencies(
            [NotNull] IRelationalTypeMappingSource typeMappingSource,
            [NotNull] ICoreSingletonOptions coreOptions)
        {
            Check.NotNull(typeMappingSource, nameof(typeMappingSource));
            Check.NotNull(coreOptions, nameof(coreOptions));

            TypeMappingSource = typeMappingSource;
            CoreOptions       = coreOptions;
        }
        public RelationalShapedQueryCompilingExpressionVisitorDependencies(
            [NotNull] IQuerySqlGeneratorFactory querySqlGeneratorFactory,
            [NotNull] ISqlExpressionFactory sqlExpressionFactory,
            [NotNull] IParameterNameGeneratorFactory parameterNameGeneratorFactory,
            [NotNull] IRelationalParameterBasedQueryTranslationPostprocessorFactory relationalParameterBasedQueryTranslationPostprocessorFactory,
            [NotNull] ICoreSingletonOptions coreSingletonOptions)
        {
            Check.NotNull(querySqlGeneratorFactory, nameof(querySqlGeneratorFactory));
            Check.NotNull(sqlExpressionFactory, nameof(sqlExpressionFactory));
            Check.NotNull(parameterNameGeneratorFactory, nameof(parameterNameGeneratorFactory));
            Check.NotNull(relationalParameterBasedQueryTranslationPostprocessorFactory, nameof(relationalParameterBasedQueryTranslationPostprocessorFactory));

            QuerySqlGeneratorFactory      = querySqlGeneratorFactory;
            SqlExpressionFactory          = sqlExpressionFactory;
            ParameterNameGeneratorFactory = parameterNameGeneratorFactory;
            RelationalParameterBasedQueryTranslationPostprocessorFactory = relationalParameterBasedQueryTranslationPostprocessorFactory;
            CoreSingletonOptions = coreSingletonOptions;
        }
Exemple #5
0
        public RelationalShapedQueryCompilingExpressionVisitorDependencies(
            [NotNull] IQuerySqlGeneratorFactory querySqlGeneratorFactory,
            [NotNull] ISqlExpressionFactory sqlExpressionFactory,
            [NotNull] IParameterNameGeneratorFactory parameterNameGeneratorFactory,
            [NotNull] IRelationalParameterBasedSqlProcessorFactory relationalParameterBasedSqlProcessorFactory,
            [NotNull] ICoreSingletonOptions coreSingletonOptions)
        {
            Check.NotNull(querySqlGeneratorFactory, nameof(querySqlGeneratorFactory));
            Check.NotNull(sqlExpressionFactory, nameof(sqlExpressionFactory));
            Check.NotNull(parameterNameGeneratorFactory, nameof(parameterNameGeneratorFactory));
            Check.NotNull(relationalParameterBasedSqlProcessorFactory, nameof(relationalParameterBasedSqlProcessorFactory));

            QuerySqlGeneratorFactory = querySqlGeneratorFactory;
#pragma warning disable CS0618 // Type or member is obsolete
            SqlExpressionFactory          = sqlExpressionFactory;
            ParameterNameGeneratorFactory = parameterNameGeneratorFactory;
#pragma warning restore CS0618 // Type or member is obsolete
            RelationalParameterBasedSqlProcessorFactory = relationalParameterBasedSqlProcessorFactory;
            CoreSingletonOptions = coreSingletonOptions;
        }
 /// <summary>
 ///     Clones this dependency parameter object with one service replaced.
 /// </summary>
 /// <param name="coreOptions"> A replacement for the current dependency of this type. </param>
 /// <returns> A new parameter object with the given service replaced. </returns>
 public RelationalValueBufferFactoryDependencies With([NotNull] ICoreSingletonOptions coreOptions)
 => new RelationalValueBufferFactoryDependencies(TypeMappingSource, coreOptions);