public static void UseRequestOptions([NotNull] this AtsConnection connection, [NotNull] TableRequestOptions options) { Check.NotNull(connection, "connection"); Check.NotNull(options, "options"); connection.TableRequestOptions = options; }
public virtual AtsQueryContext MakeQueryContext([NotNull] IModel model, [NotNull] ILogger logger, [NotNull] StateManager stateManager, [NotNull] AtsConnection connection) { return(new AtsQueryContext(model, logger, stateManager, connection, _valueReaderFactory)); }
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)); }
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(); }
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(); }
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 static void ResetRequestOptions([NotNull] this AtsConnection connection) { Check.NotNull(connection, "connection"); connection.TableRequestOptions = null; }
public static void UseBatching([NotNull] this AtsConnection connection, bool value) { Check.NotNull(connection, "connection"); connection.Batching = value; }
public AtsDataStoreCreator([NotNull] AtsConnection connection) { Check.NotNull(connection, "connection"); _connection = connection; }