示例#1
0
        public override void Setup()
        {
            DbContext = DbContextFactory.CreateOracleContext(ConnectionStrings.GetOracle());
            TableName = "htablefromxml";

            base.Setup();
            DbSchema.DropTable(TableName);
        }
        public override void Setup()
        {
            ConversionFileForRead  = "Resources/Unit4OracleReaderConversions.xml";
            ConversionFileForWrite = "Resources/Unit4OracleWriterConversions.xml";
            DbContext = DbContextFactory.CreateOracleContext(ConnectionStrings.GetOracle());

            base.Setup();
        }
示例#3
0
        public override void Setup()
        {
            DbContext              = DbContextFactory.CreateOracleContext(ConnectionStrings.GetOracle());
            DbSchema               = DbContext.PowerPlant.CreateDbSchema();
            Commands               = DbContext.PowerPlant.CreateCommands();
            ConversionFileForRead  = "Resources/Unit4OracleReaderConversions.xml";
            ConversionFileForWrite = "Resources/Unit4OracleWriterConversions.xml";

            DbSchema.DropTable(TestTable);
            DeleteFiles();
        }
示例#4
0
        public override void Setup()
        {
            DbContext        = DbContextFactory.CreateOracleContext(ConnectionStrings.GetOracle());
            _oraTableCreator = new OraTableCreator(DbContext);
            TableName        = _oraTableCreator.TableName;

            _writer           = AWriterFactory.CreateInstance(DbContext);
            _writer.Directory = ".\\";
            _reader           = AReaderFactory.CreateInstance(DbContext);
            _reader.Directory = ".\\";

            _schemaFileName = $@".\{TableName}.{_writer.SchemaFileSuffix}";
            _dataFileName   = $@".\{TableName}.{_writer.DataFileSuffix}";
            _blobFileName   = $@".\{TableName}\i000000000000000.raw";

            base.Setup();
        }
示例#5
0
 public override void Setup()
 {
     DbContext = DbContextFactory.CreateOracleContext(ConnectionStrings.GetOracle());
     base.Setup();
 }
示例#6
0
 public void Setup()
 {
     _msContext  = DbContextFactory.CreateSqlServerContext(_connectionStrings.GetSqlServer());
     _oraContext = DbContextFactory.CreateOracleContext(_connectionStrings.GetOracle());
     _testTable  = "htestdatabase";
 }