Esempio n. 1
0
 public cds_MYSQLKonektor(cds_KoneksiString options, bool isTransaction = true, IsolationLevel isolationLevel = IsolationLevel.Serializable)
 {
     this.isolationLevel = isolationLevel;
     this.isTransaction  = isTransaction;
     base.SetKoneksiString(options);
     mysqlConnection = new MySqlConnection(base.koneksiString);
     if (!base.OpenKoneksi(mysqlConnection, 10))
     {
         throw new Exception("Unable to connect");
     }
     if (isTransaction)
     {
         mysqlTransaction = mysqlConnection.BeginTransaction(this.isolationLevel);
     }
     mysqlCommand            = mysqlConnection.CreateCommand();
     mysqlCommand.Connection = mysqlConnection;
 }
Esempio n. 2
0
 public cds_MYSQLMultiKonektor(cds_KoneksiString options)
 {
     base.SetKoneksiString(options);
 }
Esempio n. 3
0
 public void SetKoneksiString(cds_KoneksiString option)
 {
     this.koneksiStringOption = option;
     this.koneksiString       = option.ToString();
 }