Пример #1
0
        /// <summary>
        /// 创建新的 spt_monitor 对象。
        /// </summary>
        /// <param name="lastrun">lastrun 属性的初始值。</param>
        /// <param name="cpu_busy">cpu_busy 属性的初始值。</param>
        /// <param name="io_busy">io_busy 属性的初始值。</param>
        /// <param name="idle">idle 属性的初始值。</param>
        /// <param name="pack_received">pack_received 属性的初始值。</param>
        /// <param name="pack_sent">pack_sent 属性的初始值。</param>
        /// <param name="connections">connections 属性的初始值。</param>
        /// <param name="pack_errors">pack_errors 属性的初始值。</param>
        /// <param name="total_read">total_read 属性的初始值。</param>
        /// <param name="total_write">total_write 属性的初始值。</param>
        /// <param name="total_errors">total_errors 属性的初始值。</param>
        public static spt_monitor Createspt_monitor(global::System.DateTime lastrun, global::System.Int32 cpu_busy, global::System.Int32 io_busy, global::System.Int32 idle, global::System.Int32 pack_received, global::System.Int32 pack_sent, global::System.Int32 connections, global::System.Int32 pack_errors, global::System.Int32 total_read, global::System.Int32 total_write, global::System.Int32 total_errors)
        {
            spt_monitor spt_monitor = new spt_monitor();

            spt_monitor.lastrun       = lastrun;
            spt_monitor.cpu_busy      = cpu_busy;
            spt_monitor.io_busy       = io_busy;
            spt_monitor.idle          = idle;
            spt_monitor.pack_received = pack_received;
            spt_monitor.pack_sent     = pack_sent;
            spt_monitor.connections   = connections;
            spt_monitor.pack_errors   = pack_errors;
            spt_monitor.total_read    = total_read;
            spt_monitor.total_write   = total_write;
            spt_monitor.total_errors  = total_errors;
            return(spt_monitor);
        }
Пример #2
0
 /// <summary>
 /// 用于向 spt_monitor EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddTospt_monitor(spt_monitor spt_monitor)
 {
     base.AddObject("spt_monitor", spt_monitor);
 }