public static Boolean ConferenceExists(long APartnerKey) { TDBTransaction ReadTransaction = null; Boolean Exists = false; DBAccess.GDBAccessObj.BeginAutoReadTransaction(IsolationLevel.ReadCommitted, ref ReadTransaction, delegate { Exists = PcConferenceAccess.Exists(APartnerKey, ReadTransaction); }); return(Exists); }
public static Boolean ConferenceExists(long APartnerKey) { TDBTransaction ReadTransaction = new TDBTransaction(); Boolean Exists = false; DBAccess.ReadTransaction(ref ReadTransaction, delegate { Exists = PcConferenceAccess.Exists(APartnerKey, ReadTransaction); }); return(Exists); }
public static Boolean ConferenceExists(long APartnerKey) { TDBTransaction ReadTransaction; Boolean Exists = false; ReadTransaction = DBAccess.GDBAccessObj.BeginTransaction(IsolationLevel.ReadCommitted); try { Exists = PcConferenceAccess.Exists(APartnerKey, ReadTransaction); } catch (Exception e) { TLogging.Log(e.ToString()); } finally { DBAccess.GDBAccessObj.CommitTransaction(); TLogging.LogAtLevel(7, "TConferenceDataReaderWebConnector.CreateNewConference: commit own transaction."); } return(Exists); }