public StoredProcedureSamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
 public PaginationSamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
예제 #3
0
 public BulkCopySamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
 public SqlNonQuerySamples(
     IDatabaseCommander databaseCommander,
     IConfiguration config)
     : base(config)
 {
     _databaseCommander = databaseCommander;
 }
예제 #5
0
 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;
 }