예제 #1
0
 public void updatestate(Like like)
 {
     using (var context = new TwetterContext())
     {
         context.Entry(like).State = EntityState.Modified;
         context.SaveChanges();
     };
 }
예제 #2
0
 public void updatestate(Connection conn)
 {
     using (var context = new TwetterContext())
     {
         context.Entry(conn).State = EntityState.Modified;
         context.SaveChanges();
     };
 }
예제 #3
0
 public void Save()
 {
     using (TransactionScope tScope = new TransactionScope())
     {
         twcontext.SaveChanges();
         tScope.Complete();
     }
 }
예제 #4
0
 public void updatestate(Retweet entity)
 {
     using (var context = new TwetterContext())
     {
         context.Entry(entity).State = EntityState.Modified;
         context.SaveChanges();
     };
 }