public void Update(IDBEntityWithContent entity) { if (entity == null) { throw new ArgumentNullException("entity"); } context.SaveChanges(); }
public void Delete(IDBEntityWithContent entity) { if (entity == null) { throw new ArgumentNullException("entity"); } entities.Remove((Article)entity); context.SaveChanges(); }
public void Insert(IDBEntityWithContent entity) { if (entity == null) { throw new ArgumentNullException("entity"); } entities.Add((Article)entity); context.SaveChanges(); }