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); }
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); }
public static bool IsContactLogAssociatedWithMoreThanOnePartner(long AContactLogId, TDBTransaction ATransaction) { return(PPartnerContactAccess.CountViaPContactLog(AContactLogId, ATransaction) > 1); }