Пример #1
0
        public AtsDataStore([NotNull] DbContextConfiguration configuration,
                            [NotNull] AtsConnection connection,
                            [NotNull] AtsQueryFactory queryFactory,
                            [NotNull] TableEntityAdapterFactory tableEntityFactory)
            : base(configuration)
        {
            Check.NotNull(connection, "connection");
            Check.NotNull(queryFactory, "queryFactory");
            Check.NotNull(tableEntityFactory, "tableEntityFactory");

            _queryFactory = queryFactory;
            EntityFactory = tableEntityFactory;
            Connection    = connection;
        }
Пример #2
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;
        }
        public AtsDataStoreCreator([NotNull] AtsConnection connection)
        {
            Check.NotNull(connection, "connection");

            _connection = connection;
        }
Пример #4
0
 /// <summary>
 ///     Provided only for testing purposes. Do not use.
 /// </summary>
 protected AtsDataStore(AtsConnection connection, TableEntityAdapterFactory entityFactory)
 {
     Connection    = connection;
     EntityFactory = entityFactory;
 }
Пример #5
0
 /// <summary>
 ///     Provided only for testing purposes. Do not use.
 /// </summary>
 protected AtsDataStore(DbContextConfiguration configuration, AtsConnection connection, TableEntityAdapterFactory entityFactory)
 {
     _configuration = configuration;
     Connection     = connection;
     EntityFactory  = entityFactory;
 }