public void DeleteBlacklistLog(BlacklistLog blackListLog) { try { BlacklistLog persistedBlacklistLog = (from c in context.BlacklistLogs where c.BlacklistLogID == blackListLog.BlacklistLogID select c).FirstOrDefault(); using (TransactionScope ts = new TransactionScope()) { context.BlacklistLogs.DeleteObject(persistedBlacklistLog); context.SaveChanges(); ts.Complete(); } } catch (Exception) { throw; } }
public void DeleteBlacklistLog(BlacklistLog blackListLog) { udao.DeleteBlacklistLog(blackListLog); }
public BlacklistLog CreateBlacklistLog(BlacklistLog blackListLog) { return udao.CreateBlacklistLog(blackListLog); }
public BlacklistLog UpdateBlacklistLog(BlacklistLog blackListLog) { return udao.UpdateBlacklistLog(blackListLog); }
/// <summary> /// Deprecated Method for adding a new object to the BlacklistLogs EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBlacklistLogs(BlacklistLog blacklistLog) { base.AddObject("BlacklistLogs", blacklistLog); }
/// <summary> /// Create a new BlacklistLog object. /// </summary> /// <param name="blacklistLogID">Initial value of the BlacklistLogID property.</param> /// <param name="departmentID">Initial value of the DepartmentID property.</param> /// <param name="dateBlacklisted">Initial value of the DateBlacklisted property.</param> public static BlacklistLog CreateBlacklistLog(global::System.Int32 blacklistLogID, global::System.Int32 departmentID, global::System.DateTime dateBlacklisted) { BlacklistLog blacklistLog = new BlacklistLog(); blacklistLog.BlacklistLogID = blacklistLogID; blacklistLog.DepartmentID = departmentID; blacklistLog.DateBlacklisted = dateBlacklisted; return blacklistLog; }