Exemple #1
0
 public static void Close()
 {
     if (Instance == null)
     {
         return;
     }
     Instance.sqlConnection.Close();
     Instance.sqlConnection.Dispose();
     Instance = null;
 }
Exemple #2
0
 public static void RollBack()
 {
     if (Instance == null)
     {
         Instance = new CDBS();
     }
     if (Instance.tr != null)
     {
         Instance.tr.Rollback();
         Instance.tr.Dispose();
         Instance.tr = null;
     }
 }
Exemple #3
0
 public static void Commit()
 {
     if (Instance == null)
     {
         Instance = new CDBS();
     }
     if (Instance.tr != null)
     {
         Instance.tr.Commit();
         Instance.tr.Dispose();
         Instance.tr = null;
     }
 }
Exemple #4
0
 public static void BeginTransaction()
 {
     if (Instance == null)
     {
         Instance = new CDBS();
     }
     if (Instance.tr != null)
     {
         Instance.tr.Commit();
         Instance.tr.Dispose();
     }
     Instance.tr = Instance.sqlConnection.BeginTransaction();
 }
Exemple #5
0
 public static void Create(string _fname_udl)
 {
     Instance = new CDBS(_fname_udl);
 }