public async Task <int> CrearLogException(string Mensaje)
        {
            try
            {
                var modelo = new LogExceptions
                {
                    Mensaje = Mensaje,
                    Fecha   = DateTime.Now
                };

                using (EVERTECEntities _modelo = new EVERTECEntities())
                {
                    _modelo.LogExceptions.Add(modelo);

                    await _modelo.SaveChangesAsync();

                    return(modelo.LogExceptionID);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
예제 #2
0
 public EFBase()
 {
     _modelo = new EVERTECEntities();
 }
예제 #3
0
 public CRUDGenerico(EVERTECEntities context)
 {
     _context = context;
 }