예제 #1
0
 public void Update(TEntity entity)
 {
     try
     {
         context.Entry(entity).State = EntityState.Modified;
         context.SaveChanges();
     }
     catch (Exception error)
     {
         Console.WriteLine(error.ToString());
     }
 }
예제 #2
0
 public void Save()
 {
     context.SaveChanges();
 }