public void updatestate(Connection conn) { using (var context = new TwetterContext()) { context.Entry(conn).State = EntityState.Modified; context.SaveChanges(); }; }
public void updatestate(Like like) { using (var context = new TwetterContext()) { context.Entry(like).State = EntityState.Modified; context.SaveChanges(); }; }
public void updatestate(Retweet entity) { using (var context = new TwetterContext()) { context.Entry(entity).State = EntityState.Modified; context.SaveChanges(); }; }