コード例 #1
0
        public static void UseRequestOptions([NotNull] this AtsConnection connection, [NotNull] TableRequestOptions options)
        {
            Check.NotNull(connection, "connection");
            Check.NotNull(options, "options");

            connection.TableRequestOptions = options;
        }
コード例 #2
0
 public virtual AtsQueryContext MakeQueryContext([NotNull] IModel model,
                                                 [NotNull] ILogger logger,
                                                 [NotNull] StateManager stateManager,
                                                 [NotNull] AtsConnection connection)
 {
     return(new AtsQueryContext(model, logger, stateManager, connection, _valueReaderFactory));
 }
コード例 #3
0
ファイル: AtsQueryFactory.cs プロジェクト: Elidiomar/ef_core
        public virtual AtsQueryContext MakeQueryContext(
            [NotNull] IModel model,
            [NotNull] ILogger logger,
            [NotNull] IQueryBuffer queryBuffer,
            [NotNull] AtsConnection connection)
        {
            Check.NotNull(model, "model");
            Check.NotNull(logger, "logger");
            Check.NotNull(queryBuffer, "queryBuffer");
            Check.NotNull(connection, "connection");

            return(new AtsQueryContext(logger, queryBuffer, connection, _valueReaderFactory));
        }
コード例 #4
0
ファイル: AtsQueryContext.cs プロジェクト: Elidiomar/ef_core
        public AtsQueryContext(
            [NotNull] ILogger logger,
            [NotNull] IQueryBuffer queryBuffer,
            [NotNull] AtsConnection connection,
            [NotNull] AtsValueReaderFactory readerFactory)
            : base(
                Check.NotNull(logger, "logger"),
                Check.NotNull(queryBuffer, "queryBuffer"))
        {
            Check.NotNull(logger, "logger");
            Check.NotNull(readerFactory, "readerFactory");

            _connection         = connection;
            ValueReaderFactory  = readerFactory;
            TableQueryGenerator = new TableQueryGenerator();
        }
コード例 #5
0
        public AtsQueryContext(
            [NotNull] IModel model,
            [NotNull] ILogger logger,
            [NotNull] StateManager stateManager,
            [NotNull] AtsConnection connection,
            [NotNull] AtsValueReaderFactory readerFactory)
            : base(model, logger, stateManager)
        {
            Check.NotNull(model, "model");
            Check.NotNull(logger, "logger");
            Check.NotNull(stateManager, "stateManager");
            Check.NotNull(readerFactory, "readerFactory");

            _connection         = connection;
            ValueReaderFactory  = readerFactory;
            TableQueryGenerator = new TableQueryGenerator();
        }
コード例 #6
0
        public AtsDataStoreServices(
            [NotNull] AtsDataStore store,
            [NotNull] AtsDataStoreCreator creator,
            [NotNull] AtsConnection connection,
            [NotNull] AtsValueGeneratorCache valueGeneratorCache,
            [NotNull] AtsDatabase database,
            [NotNull] AtsModelBuilderFactory modelBuilderFactory)
        {
            Check.NotNull(store, "store");
            Check.NotNull(creator, "creator");
            Check.NotNull(connection, "connection");
            Check.NotNull(valueGeneratorCache, "valueGeneratorCache");
            Check.NotNull(database, "database");
            Check.NotNull(modelBuilderFactory, "modelBuilderFactory");

            _store = store;
            _creator = creator;
            _connection = connection;
            _valueGeneratorCache = valueGeneratorCache;
            _database = database;
            _modelBuilderFactory = modelBuilderFactory;
        }
コード例 #7
0
        public static void ResetRequestOptions([NotNull] this AtsConnection connection)
        {
            Check.NotNull(connection, "connection");

            connection.TableRequestOptions = null;
        }
コード例 #8
0
        public static void UseBatching([NotNull] this AtsConnection connection, bool value)
        {
            Check.NotNull(connection, "connection");

            connection.Batching = value;
        }
コード例 #9
0
        public AtsDataStoreCreator([NotNull] AtsConnection connection)
        {
            Check.NotNull(connection, "connection");

            _connection = connection;
        }