Esempio n. 1
0
 /// <summary>
 /// Connect to DB
 /// </summary>
 /// <param name="connString">Connection string</param>
 public OracleMapper(string connString)
 {
     Database = new OracleDatabase();
     Database.Connect(connString);
 }
Esempio n. 2
0
 /// <summary>
 /// Connect to DB
 /// </summary>
 /// <param name="connString">Connection string</param>
 /// <param name="owner">Schema owner</param>
 public OracleMapper(string connString, string owner)
 {
     Database = new OracleDatabase();
     Owner    = owner;
     Database.Connect(connString);
 }
Esempio n. 3
0
 /// <summary>
 /// Connect to session based DB
 /// </summary>
 public OracleMapper()
 {
     Database = new OracleDatabase();
     Database.Connect(SessionProvider.Instance.ConnectionString);
     Owner = SessionProvider.Instance.Username.ToUpper();
 }