Пример #1
0
 /// <summary>
 /// 建立新 tblHostConfig 物件。
 /// </summary>
 /// <param name="hostID">HostID 屬性的初始值。</param>
 /// <param name="hostType">HostType 屬性的初始值。</param>
 /// <param name="iP">IP 屬性的初始值。</param>
 /// <param name="port">Port 屬性的初始值。</param>
 public static tblHostConfig CreatetblHostConfig(global::System.String hostID, global::System.Int16 hostType, global::System.String iP, global::System.Int32 port)
 {
     tblHostConfig tblHostConfig = new tblHostConfig();
     tblHostConfig.HostID = hostID;
     tblHostConfig.HostType = hostType;
     tblHostConfig.IP = iP;
     tblHostConfig.Port = port;
     return tblHostConfig;
 }
Пример #2
0
 /// <summary>
 /// 將新物件加入 tblHostConfig EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddTotblHostConfig(tblHostConfig tblHostConfig)
 {
     base.AddObject("tblHostConfig", tblHostConfig);
 }