private void MakeDriver() { var cfg = TestConfigurationHelper.GetDefaultConfiguration(); var dlct = cfg.GetProperty("dialect"); if (!dlct.Contains("Firebird")) { Assert.Ignore("Applies only to Firebird"); } _driver = new FirebirdClientDriver(); _connectionString = cfg.GetProperty("connection.connection_string"); }
public void OneTimeSetup() { var cfg = TestConfigurationHelper.GetDefaultConfiguration(); var driverClass = ReflectHelper.ClassForName(cfg.GetProperty(Environment.ConnectionDriver)); // Odbc is not supported by schema update: System.Data.Odbc.OdbcConnection.GetSchema("ForeignKeys") fails with an ArgumentException: ForeignKeys is undefined. // It seems it would require its own DataBaseSchema, but this is bound to the dialect, not the driver. if (typeof(OdbcDriver).IsAssignableFrom(driverClass)) { Assert.Ignore("Test is not compatible with ODBC"); } if (typeof(FirebirdClientDriver).IsAssignableFrom(driverClass)) { _fireBirdDriver = new FirebirdClientDriver(); } }
public void OneTimeSetup() { var cfg = TestConfigurationHelper.GetDefaultConfiguration(); var dlct = cfg.GetProperty("dialect"); if (!dlct.Contains("Firebird")) { Assert.Ignore("Applies only to Firebird"); } _driver = new FirebirdClientDriver(); _driver.Configure(cfg.Properties); _connectionString = cfg.GetProperty("connection.connection_string"); _driverWithoutCasting = new FirebirdClientDriver(); cfg.SetProperty(Cfg.Environment.FirebirdDisableParameterCasting, "true"); _driverWithoutCasting.Configure(cfg.Properties); }