Ejemplo n.º 1
0
        public string GetExcepionMessageById(string id)
        {
            var result = new List <string>(); //new List<string>();
            var sql    = new StringBuilder();

            sql.AppendLine("SELECT  ExceptionDetails");
            sql.AppendLine("From [exceptionlog] ");
            sql.AppendLine("WHERE exceptionid = @exceptionid");
            result = _context.Query <string>(sql.ToString(), new { ExceptionId = id }).ToList();
            return(result.FirstOrDefault());
        }