public override Database GetDatabase(ConnectionStringSettings conn, DbProviderFactory factory) { Database db = base.GetDatabase(conn, factory); OracleRegistrar.Register(db.ServiceProvider); return(db); }
public ConnectionStringSettings Resolve(string connectionName) { ConnectionStringSettings connSettings = new ConnectionStringSettings(); connSettings.Name = connectionName; connSettings.ProviderName = OracleRegistrar.OracleAssemblyQualifiedName(); connSettings.ConnectionString = "Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST={ServerName})(PORT={Port}))(CONNECT_DATA=(SERVICE_NAME={InstanceName})));User Id={UserId};Password={Password};".NamedFormat(this); return(connSettings); }
public void Register(Incubation.Incubator incubator) { OracleRegistrar.Register(incubator); }
public void Register <T>() where T : Dao { OracleRegistrar.Register <T>(); }
public void Register(Type daoType) { OracleRegistrar.Register(daoType); }
public void Register(string connectionName) { OracleRegistrar.Register(connectionName); }
public void Register(Database database) { OracleRegistrar.Register(database); }