コード例 #1
0
        public static bool IsContactLogAssociatedWithMoreThanOnePartner(long contactLogId)
        {
            bool           returnValue = false;
            TDBTransaction Transaction = null;

            DBAccess.GDBAccessObj.GetNewOrExistingAutoReadTransaction(IsolationLevel.ReadCommitted, TEnforceIsolationLevel.eilMinimum,
                                                                      ref Transaction,
                                                                      delegate
            {
                returnValue = PPartnerContactAccess.CountViaPContactLog(contactLogId, Transaction) > 1;
            });

            return(returnValue);
        }
コード例 #2
0
ファイル: Contacts.cs プロジェクト: petes05/openpetra
        public static bool IsContactLogAssociatedWithMoreThanOnePartner(long contactLogId)
        {
            Boolean        NewTransaction;
            TDBTransaction WriteTransaction = DBAccess.GDBAccessObj.GetNewOrExistingTransaction(IsolationLevel.Serializable,
                                                                                                TEnforceIsolationLevel.eilMinimum, out NewTransaction);

            bool returnValue = PPartnerContactAccess.CountViaPContactLog(contactLogId, WriteTransaction) > 1;

            if (NewTransaction)
            {
                DBAccess.GDBAccessObj.CommitTransaction();
            }

            return(returnValue);
        }
コード例 #3
0
 public static bool IsContactLogAssociatedWithMoreThanOnePartner(long AContactLogId, TDBTransaction ATransaction)
 {
     return(PPartnerContactAccess.CountViaPContactLog(AContactLogId, ATransaction) > 1);
 }