Пример #1
0
 public TransactionHelper(MSSQLDBDAL DB, ITransaction tr = null)
 {
     if (tr == null)
     {
         this.Tr          = DB.BeginTransaction();
         this.ExistParent = false;
     }
     else
     {
         this.Tr          = tr;
         this.ExistParent = true;
     }
 }
Пример #2
0
 public DataBase(DataBase db = null)
 {
     if (db == null)
     {
         this.DB          = new MSSQLDBDAL();
         this.ExistParent = false;
     }
     else
     {
         this.DB          = db.DB;
         this.ExistParent = true;
     }
 }