public StoredProcedureSamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
 public PaginationSamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
 public BulkCopySamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
 public SqlNonQuerySamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
 public ScalarSamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
 public XVerifyMailingAddressValidFileProcessor(
     IDatabaseCommanderFactory databaseCommandFactory,
     IDelimitedFileHandler delimitedFileHandler)
 {
     _databaseCommander    = databaseCommandFactory.Create(DefaultConnection);
     _delimitedFileHandler = delimitedFileHandler;
 }
 public SqlServerPaginationCommand(
     SqlConnectionStringBuilder builder,
     DatabaseCommandBuilder databaseCommandBuilder,
     ISqlServerCommandExecutor commandExecutor)
 {
     _databaseCommander = new SqlServerDatabaseCommander(builder, databaseCommandBuilder, commandExecutor);
 }
        public async Task DatabaseCommanderFactoryWorksWithAlternateConnectionStrings()
        {
            IDatabaseCommander databaseCommander = _databaseCommanderFactory.Create("AlternateConnectionString");

            string serverName = await databaseCommander.GetServerNameAsync(new CancellationToken());

            Console.WriteLine("Connected to: {0}", serverName);
        }
 public PaginationCommand(
     IDatabaseCommander databaseCommander,
     IRequestValidator <PaginationRequest> requestValidator)
     : base(new PaginationRequest())
 {
     _databaseCommander = databaseCommander;
     _requestValidator  = requestValidator;
 }
示例#10
0
 public BulkCopyCommand(
     IDatabaseCommander databaseCommander,
     IRequestValidator <BulkCopyRequest> requestValidator,
     IAutoMapper autoMapper)
     : base(new BulkCopyRequest())
 {
     _databaseCommander = databaseCommander;
     _requestValidator  = requestValidator;
     _autoMapper        = autoMapper;
 }
        public AccessToSqlServerProcessor(
            IDatabaseCommanderFactory databaseCommanderFactory,
            IConnectionStringProvider connectionStringProvider)
        {
            _databaseCommander = databaseCommanderFactory.Create(_settings.ConnectionStringName);
            _settings          = new SqlServerFileProcessorSettings
            {
                ConnectionStringName = Constants.Configuration.ConnectionString.DefaultConnection,
                FilePath             = connectionStringProvider.Get("AccessConnection"),
                SchemaName           = "issue",
                TableName            = "ESGBeforeOpSolve",
                PrimaryKeyColumnName = "ESGBeforeOpSolveID",
                CreatedBy            = "sferguson",
                IsAppendAuditFields  = true
            };

            _databaseColumns = new Dictionary <string, string>();

            Init();
        }
 public ReconcileCleanupProcessor(IDatabaseCommanderFactory commanderFactory)
 {
     _commander = commanderFactory.Create("AccountDatabase");
 }
示例#13
0
 public NullColumnDatabaseTableProcessor(IDatabaseCommanderFactory databaseCommanderFactory)
 {
     _databaseCommander = databaseCommanderFactory.Create();
 }
 public SqlQueryCommand(IDatabaseCommander databaseCommander)
     : base(new SqlQueryRequest())
 {
     _databaseCommander = databaseCommander;
 }
 public StoredProcedureCommand(IDatabaseCommander databaseCommander)
     : base(new StoredProcedureRequest())
 {
     _databaseCommander = databaseCommander;
 }
示例#16
0
 public ScalarCommand(IDatabaseCommander databaseCommander)
     : base(new ScalarRequest())
 {
     _databaseCommander = databaseCommander;
 }
示例#17
0
 public AutoMapper(IDatabaseCommander databaseCommander)
 {
     _databaseCommander = databaseCommander;
 }