private void setProperties(string title, int workProgressPercent, DateTime startDate, DateTime startTime, DateTime endTime, string content, TaskCategory category) { this.WorkProgressPercent = workProgressPercent; this.StartDate = startDate; this.StartTime = startTime; this.EndTime = endTime; this.Content = content; this.Title = title; this.Category = category; }
public virtual void Update(string title, DateTime startDate, DateTime startTime, DateTime endTime, string content, int workProgressPercent, TaskCategory category, AppType appType) { setProperties(title, workProgressPercent, startDate, startTime, endTime, content, category); SyncByUpdate(appType); }
public Task(string title, DateTime startDate, DateTime startTime, DateTime endTime, string content, int workProgressPercent, TaskCategory category, AppType appType, Guid syncId) : base(syncId, appType) { setProperties(title, workProgressPercent, startDate, startTime, endTime, content, category); }
public void Delete(TaskCategory taskCategory) { ctx.TaskCategories.Remove(taskCategory); ctx.SaveChanges(); }
public void Update(TaskCategory taskCategory) { ctx.SaveChanges(); }
public void Create(TaskCategory taskCategory) { ctx.TaskCategories.Add(taskCategory); ctx.SaveChanges(); }