Exemplo n.º 1
0
        /// <summary>
        /// 建立新 NLog_Record 物件。
        /// </summary>
        /// <param name="sequence_id">sequence_id 屬性的初始值。</param>
        /// <param name="time_stamp">time_stamp 屬性的初始值。</param>
        /// <param name="level">level 屬性的初始值。</param>
        /// <param name="host">host 屬性的初始值。</param>
        /// <param name="url">url 屬性的初始值。</param>
        /// <param name="type">type 屬性的初始值。</param>
        /// <param name="source">source 屬性的初始值。</param>
        /// <param name="logger">logger 屬性的初始值。</param>
        /// <param name="message">message 屬性的初始值。</param>
        /// <param name="stacktrace">stacktrace 屬性的初始值。</param>
        /// <param name="detail">detail 屬性的初始值。</param>
        /// <param name="allxml">allxml 屬性的初始值。</param>
        public static NLog_Record CreateNLog_Record(global::System.Int32 sequence_id, global::System.DateTime time_stamp, global::System.String level, global::System.String host, global::System.String url, global::System.String type, global::System.String source, global::System.String logger, global::System.String message, global::System.String stacktrace, global::System.String detail, global::System.String allxml)
        {
            NLog_Record nLog_Record = new NLog_Record();

            nLog_Record.sequence_id = sequence_id;
            nLog_Record.time_stamp  = time_stamp;
            nLog_Record.level       = level;
            nLog_Record.host        = host;
            nLog_Record.url         = url;
            nLog_Record.type        = type;
            nLog_Record.source      = source;
            nLog_Record.logger      = logger;
            nLog_Record.message     = message;
            nLog_Record.stacktrace  = stacktrace;
            nLog_Record.detail      = detail;
            nLog_Record.allxml      = allxml;
            return(nLog_Record);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 將新物件加入 NLog_Record EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddToNLog_Record(NLog_Record nLog_Record)
 {
     base.AddObject("NLog_Record", nLog_Record);
 }