Beispiel #1
0
        public void Update(TEntity obj)
        {
            var entry = Context.Entry(obj);

            DbSet.Attach(obj);
            entry.State = EntityState.Modified;
        }
 public virtual void Update(TEntity obj)
 {
     _Db.Entry(obj).State = EntityState.Modified;
     _Db.SaveChanges();
 }