예제 #1
0
 public void Update(TEntity obj)
 {
     try
     {
         _sqlContext.Entry(obj).State = Microsoft.EntityFrameworkCore.EntityState.Modified;
         _sqlContext.SaveChanges();
     }
     catch (Exception Ex)
     {
         throw Ex;
     }
 }
 public void Update(TEntity obj)
 {
     try
     {
         _sqlContext.Entry(obj).State = EntityState.Modified;
         _sqlContext.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }