示例#1
0
 public void Save()
 {
     try
     {
         _context.SaveChanges();
     }
     catch //(DbEntityValidationException e)
     {
         //throw new Exception(e.EntityValidationErrors.First().ValidationErrors.First().ErrorMessage);
     }
 }
示例#2
0
 public void Save()
 {
     _context.SaveChanges();
 }