public void Delete(int id) { collect_data_view entity = this.GetEntity(id); db.Entry(entity).State = System.Data.Entity.EntityState.Deleted; db.SaveChanges(); }
public void Delete(collect_data_view entity) { db.Entry(entity).State = System.Data.Entity.EntityState.Deleted; db.SaveChanges(); }
public void Add(collect_data_view entity) { db.collect_data_views.Add(entity); db.SaveChanges(); }