public void LogAction(string action, int applicationId, Guid userId, DateTime dateAdded) { ActionLog log = new ActionLog(); log.ApplicationId = applicationId; log.DateExecuted = dateAdded; log.Action = action; log.UserId = userId; context.ActionLogs.InsertOnSubmit(log); context.SubmitChanges(); }
partial void DeleteActionLog(ActionLog instance);
partial void UpdateActionLog(ActionLog instance);
partial void InsertActionLog(ActionLog instance);
private void detach_ActionLogs(ActionLog entity) { this.SendPropertyChanging(); entity.aspnet_User = null; }
private void detach_ActionLogs(ActionLog entity) { this.SendPropertyChanging(); entity.Application = null; }