public void Delete(App.Models.Domain.RecurringSheetEntry item) { if (item != null) { this._dbContext.Database.ExecuteSqlInterpolated($"UPDATE dbo.SheetEntry SET TemplateId = NULL WHERE TemplateId = {item.Id}"); this._entitySet.Remove(item); } }
public void DeleteById(int id) { App.Models.Domain.RecurringSheetEntry item = this.FindById(id); if (item != null) { this._entitySet.Remove(item); } }
public void Add(App.Models.Domain.RecurringSheetEntry item) { this._entitySet.Add(item); }