Пример #1
0
 public void Update(T entity)
 {
     Entities.Attach(entity);
     dbContext.Entry(entity).State = EntityState.Modified;
 }
Пример #2
0
 public void Delete(T entity)
 {
     Entities.Attach(entity);
     Entities.Remove(entity);
 }