public void AddReasonLog(ApplicationStatuses status, int applicationId, int reasonId, Guid userId, DateTime date) { ReasonLog log = new ReasonLog(); log.ApplicationId = applicationId; log.DateLogged = date; log.ReasonId = reasonId; log.UserAdderId = userId; context.ReasonLogs.InsertOnSubmit(log); context.SubmitChanges(); }
partial void DeleteReasonLog(ReasonLog instance);
partial void UpdateReasonLog(ReasonLog instance);
partial void InsertReasonLog(ReasonLog instance);
private void detach_ReasonLogs(ReasonLog entity) { this.SendPropertyChanging(); entity.Reason = null; }
private void attach_ReasonLogs(ReasonLog entity) { this.SendPropertyChanging(); entity.Reason = this; }