/// <summary>
 ///     <para>
 ///         Creates a new <see cref="RelationalQueryContext" /> instance.
 ///     </para>
 ///     <para>
 ///         This type is typically used by database providers (and other extensions). It is generally
 ///         not used in application code.
 ///     </para>
 /// </summary>
 /// <param name="dependencies">Parameter object containing dependencies for this class.</param>
 /// <param name="relationalDependencies">Parameter object containing relational dependencies for this class.</param>
 public RelationalQueryContext(
     QueryContextDependencies dependencies,
     RelationalQueryContextDependencies relationalDependencies)
     : base(dependencies)
 {
     RelationalDependencies = relationalDependencies;
 }
Пример #2
0
        /// <summary>
        ///     <para>
        ///         Creates a new <see cref="QueryContext" /> instance.
        ///     </para>
        ///     <para>
        ///         This type is typically used by database providers (and other extensions). It is generally
        ///         not used in application code.
        ///     </para>
        /// </summary>
        /// <param name="dependencies"> The dependencies to use. </param>
        protected QueryContext(
            [NotNull] QueryContextDependencies dependencies)
        {
            Check.NotNull(dependencies, nameof(dependencies));

            Dependencies = dependencies;
        }
Пример #3
0
 /// <summary>
 ///     Creates a new <see cref="RelationalQueryContextFactory"/> instance using the given dependencies.
 /// </summary>
 /// <param name="dependencies"> The dependencies to use. </param>
 /// <param name="relationalDependencies"> Relational-specific dependencies. </param>
 public RelationalQueryContextFactory(
     [NotNull] QueryContextDependencies dependencies,
     [NotNull] RelationalQueryContextDependencies relationalDependencies)
     : base(dependencies)
 {
     RelationalDependencies = relationalDependencies;
 }
 public MySqlQueryContext(
     [NotNull] QueryContextDependencies dependencies,
     [NotNull] Func <IQueryBuffer> queryBufferFactory,
     [NotNull] IRelationalConnection connection,
     [NotNull] IExecutionStrategyFactory executionStrategyFactory)
     : base(dependencies, queryBufferFactory, connection, executionStrategyFactory)
 {
 }
Пример #5
0
        /// <summary>
        ///     <para>
        ///         Creates a new <see cref="QueryContext" /> instance.
        ///     </para>
        ///     <para>
        ///         This type is typically used by database providers (and other extensions). It is generally
        ///         not used in application code.
        ///     </para>
        /// </summary>
        /// <param name="dependencies"> The dependencies to use. </param>
        protected QueryContext(
            QueryContextDependencies dependencies)
        {
            Check.NotNull(dependencies, nameof(dependencies));

            Dependencies = dependencies;
            Context      = dependencies.CurrentContext.Context;
        }
Пример #6
0
        /// <summary>
        ///     <para>
        ///         Creates a new <see cref="RelationalQueryContext" /> instance.
        ///     </para>
        ///     <para>
        ///         This type is typically used by database providers (and other extensions). It is generally
        ///         not used in application code.
        ///     </para>
        /// </summary>
        /// <param name="dependencies"> The dependencies to use. </param>
        /// <param name="relationalDependencies"> The relational-specific dependencies to use. </param>
        public RelationalQueryContext(
            [NotNull] QueryContextDependencies dependencies,
            [NotNull] RelationalQueryContextDependencies relationalDependencies)
            : base(dependencies)
        {
            Check.NotNull(relationalDependencies, nameof(relationalDependencies));

            RelationalDependencies = relationalDependencies;
        }
 public RelationalQueryContextFactory(
     [NotNull] QueryContextDependencies dependencies,
     [NotNull] IRelationalConnection connection,
     [NotNull] IExecutionStrategyFactory executionStrategyFactory)
     : base(dependencies)
 {
     _connection = connection;
     ExecutionStrategyFactory = executionStrategyFactory;
 }
Пример #8
0
        public QueryContext(
            [NotNull] QueryContextDependencies dependencies,
            [NotNull] Func <IQueryBuffer> queryBufferFactory)
        {
            Check.NotNull(queryBufferFactory, nameof(queryBufferFactory));
            Check.NotNull(dependencies, nameof(dependencies));

            _queryBufferFactory = queryBufferFactory;
            Dependencies        = dependencies;
        }
Пример #9
0
        /// <summary>
        ///     <para>
        ///         Creates a new <see cref="RelationalQueryContext"/> instance.
        ///     </para>
        ///     <para>
        ///         This type is typically used by database providers (and other extensions). It is generally
        ///         not used in application code.
        ///     </para>
        /// </summary>
        /// <param name="dependencies"> The dependencies to use. </param>
        /// <param name="connection"> The relational connection. </param>
        /// <param name="executionStrategyFactory"> A factory for creating the execution strategy to use. </param>
        public RelationalQueryContext(
            [NotNull] QueryContextDependencies dependencies,
            [NotNull] IRelationalConnection connection,
            [NotNull] IExecutionStrategyFactory executionStrategyFactory)
            : base(dependencies)
        {
            Check.NotNull(connection, nameof(connection));
            Check.NotNull(executionStrategyFactory, nameof(executionStrategyFactory));

            Connection = connection;
            ExecutionStrategyFactory = executionStrategyFactory;
        }
Пример #10
0
 /// <summary>
 ///     <para>
 ///         Creates a new <see cref="QueryContext" /> instance.
 ///     </para>
 ///     <para>
 ///         This type is typically used by database providers (and other extensions). It is generally
 ///         not used in application code.
 ///     </para>
 /// </summary>
 /// <param name="dependencies">The dependencies to use.</param>
 protected QueryContext(QueryContextDependencies dependencies)
 {
     Dependencies = dependencies;
     Context      = dependencies.CurrentContext.Context;
 }