//---------------------------------------------------------------------------------------------
// This file was AUTO-GENERATED by "EF Domain Objects" Xomega.Net generator.
//
// Manual CHANGES to this file WILL BE LOST when the code is regenerated.
//---------------------------------------------------------------------------------------------

using System;

namespace AdventureWorks.Services.Entities
{
    ///<summary>
    /// Audit table tracking errors in the the AdventureWorks database that are caught by the CATCH block of a TRY...CATCH construct.
    /// Data is inserted by stored procedure dbo.uspLogError when it is executed from inside the CATCH block of a TRY...CATCH construct.
    ///</summary>
    public partial class ErrorLog
    {
        public ErrorLog()
        {
        }

        #region Properties

        public int ErrorLogId  { get; set; }

        ///<summary>
        /// The date and time at which the error occurred.
        ///</summary>
        public DateTime ErrorTime  { get; set; }

        ///<summary>
        /// The user who executed the batch in which the error occurred.
        ///</summary>
        public string UserName  { get; set; }

        ///<summary>
        /// The error number of the error that occurred.
        ///</summary>
        public int ErrorNumber  { get; set; }

        ///<summary>
        /// The severity of the error that occurred.
        ///</summary>
        public int? ErrorSeverity  { get; set; }

        ///<summary>
        /// The state number of the error that occurred.
        ///</summary>
        public int? ErrorState  { get; set; }

        ///<summary>
        /// The name of the stored procedure or trigger where the error occurred.
        ///</summary>
        public string ErrorProcedure  { get; set; }

        ///<summary>
        /// The line number at which the error occurred.
        ///</summary>
        public int? ErrorLine  { get; set; }

        ///<summary>
        /// The message text of the error that occurred.
        ///</summary>
        public string ErrorMessage  { get; set; }

        #endregion
    }
}