예제 #1
0
 public Transaction(IConnection pDbConnection, object pArg1) : this(pDbConnection) {
     if (isExecutingLocaly)
     {
         parentCallingMethodInfo.MethodParameters    = new object[1];
         parentCallingMethodInfo.MethodParameters[0] = Cloner.Clone(pArg1);
         txMsg = new TransactionMsg(parentCallingMethodInfo, Configuration.Instance.Folders.AuditFolder);
     }
     transaction = connection.BeginTransaction();
 }
예제 #2
0
        internal Transaction(IConnection pDbConnection)
        {
            completed  = false;
            connection = pDbConnection;
            txMsg      = null;

            grandParentCallingMethodInfo = StackInfo.Get(4);
            if (grandParentCallingMethodInfo == null)
            {
                throw new Exception("grandParentCallingMethodInfo == null");
            }

            parentCallingMethodInfo = StackInfo.Get(3);
            if (parentCallingMethodInfo == null)
            {
                throw new Exception("parentCallingMethodInfo == null");
            }
        }