public TransactionHelper(MSSQLDBDAL DB, ITransaction tr = null) { if (tr == null) { this.Tr = DB.BeginTransaction(); this.ExistParent = false; } else { this.Tr = tr; this.ExistParent = true; } }
public DataBase(DataBase db = null) { if (db == null) { this.DB = new MSSQLDBDAL(); this.ExistParent = false; } else { this.DB = db.DB; this.ExistParent = true; } }