Esempio n. 1
0
        public override Database GetDatabase(ConnectionStringSettings conn, DbProviderFactory factory)
        {
            Database db = base.GetDatabase(conn, factory);

            OracleRegistrar.Register(db.ServiceProvider);
            return(db);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void Register(Incubation.Incubator incubator)
 {
     OracleRegistrar.Register(incubator);
 }
Esempio n. 4
0
 public void Register <T>() where T : Dao
 {
     OracleRegistrar.Register <T>();
 }
Esempio n. 5
0
 public void Register(Type daoType)
 {
     OracleRegistrar.Register(daoType);
 }
Esempio n. 6
0
 public void Register(string connectionName)
 {
     OracleRegistrar.Register(connectionName);
 }
Esempio n. 7
0
 public void Register(Database database)
 {
     OracleRegistrar.Register(database);
 }