示例#1
0
        public override Database GetDatabase(ConnectionStringSettings conn, DbProviderFactory factory)
        {
            Database db = base.GetDatabase(conn, factory);

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