public static ILHDBTran BeginTransaction(RDatabaseType dbtype, string constr)
        {
            PreconditionAssert.IsNotNullOrEmpty(constr, ErrorMessages.DBConnectionStringIsNullOrEmpty);
            LHDBAccess dbAccess = GetLHDBAccess(dbtype, constr);

            return(new LHDBTran(dbAccess));
        }
        public static ILHDBAccess CreateDBAccessInstance(RDatabaseType dbtype, string constr)
        {
            PreconditionAssert.IsNotNullOrEmpty(constr, ErrorMessages.DBConnectionStringIsNullOrEmpty);
            LHDBAccess dbAccess = GetLHDBAccess(dbtype, constr);

            return(dbAccess);
        }
Beispiel #3
0
 protected internal LHDBTran(LHDBAccess owner)
 {
     _Owner = owner;
     _Owner._engine.BeginTransaction();
 }
 protected internal LHDBTran(LHDBAccess owner)
 {
     _Owner = owner;
     _Owner._engine.BeginTransaction();
 }