Exemplo n.º 1
0
        /// <summary>
        /// 建立新 ELMAH_Error 物件。
        /// </summary>
        /// <param name="errorId">ErrorId 屬性的初始值。</param>
        /// <param name="application">Application 屬性的初始值。</param>
        /// <param name="host">Host 屬性的初始值。</param>
        /// <param name="type">Type 屬性的初始值。</param>
        /// <param name="source">Source 屬性的初始值。</param>
        /// <param name="message">Message 屬性的初始值。</param>
        /// <param name="user">User 屬性的初始值。</param>
        /// <param name="statusCode">StatusCode 屬性的初始值。</param>
        /// <param name="timeUtc">TimeUtc 屬性的初始值。</param>
        /// <param name="sequence">Sequence 屬性的初始值。</param>
        /// <param name="allXml">AllXml 屬性的初始值。</param>
        public static ELMAH_Error CreateELMAH_Error(global::System.Guid errorId, global::System.String application, global::System.String host, global::System.String type, global::System.String source, global::System.String message, global::System.String user, global::System.Int32 statusCode, global::System.DateTime timeUtc, global::System.Int32 sequence, global::System.String allXml)
        {
            ELMAH_Error eLMAH_Error = new ELMAH_Error();

            eLMAH_Error.ErrorId     = errorId;
            eLMAH_Error.Application = application;
            eLMAH_Error.Host        = host;
            eLMAH_Error.Type        = type;
            eLMAH_Error.Source      = source;
            eLMAH_Error.Message     = message;
            eLMAH_Error.User        = user;
            eLMAH_Error.StatusCode  = statusCode;
            eLMAH_Error.TimeUtc     = timeUtc;
            eLMAH_Error.Sequence    = sequence;
            eLMAH_Error.AllXml      = allXml;
            return(eLMAH_Error);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 將新物件加入 ELMAH_Error EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddToELMAH_Error(ELMAH_Error eLMAH_Error)
 {
     base.AddObject("ELMAH_Error", eLMAH_Error);
 }