public virtual void Update(TEntity Entry) { dbSet.Attach(Entry); Context.Entry(Entry).State = EntityState.Modified; }
public void Create(Url u) { db.Entry(u).State = EntityState.Added; }