コード例 #1
0
ファイル: HomeController.cs プロジェクト: jorant2023/MD_MVC
     private void P_Excepcion(object sender, RepositorioGenerico.ExceptionEvenArgs e)
     {
         if (e.EntityValidationErrors != null)
         {
             throw new DbEntityValidationException(e.Message, e.EntityValidationErrors, e.InnerException)
                   {
                   }
         }
         ;
         else
         {
             throw new Exception(e.Message, e.InnerException)
                   {
                       Source = e.Source
                   }
         };
     }
 }
コード例 #2
0
 private static void Repositorio_Excepcion(object sender, RepositorioGenerico.ExceptionEvenArgs e)
 {
     Console.WriteLine(e.Message);
 }