Пример #1
0
        public void Delete(int id)
        {
            collect_data_view entity = this.GetEntity(id);

            db.Entry(entity).State = System.Data.Entity.EntityState.Deleted;
            db.SaveChanges();
        }
Пример #2
0
 public void Delete(collect_data_view entity)
 {
     db.Entry(entity).State = System.Data.Entity.EntityState.Deleted;
     db.SaveChanges();
 }
Пример #3
0
 public void Add(collect_data_view entity)
 {
     db.collect_data_views.Add(entity);
     db.SaveChanges();
 }