Exemplo n.º 1
0
 /// <summary>
 /// 建立新 tblItemConfig 物件。
 /// </summary>
 /// <param name="itemID">ItemID 屬性的初始值。</param>
 /// <param name="itemName">ItemName 屬性的初始值。</param>
 /// <param name="controlID">ControlID 屬性的初始值。</param>
 /// <param name="type">Type 屬性的初始值。</param>
 /// <param name="address">Address 屬性的初始值。</param>
 /// <param name="bitNo">BitNo 屬性的初始值。</param>
 /// <param name="length">Length 屬性的初始值。</param>
 /// <param name="valueScale">ValueScale 屬性的初始值。</param>
 /// <param name="offset">Offset 屬性的初始值。</param>
 /// <param name="coefficient">Coefficient 屬性的初始值。</param>
 /// <param name="isShow">IsShow 屬性的初始值。</param>
 public static tblItemConfig CreatetblItemConfig(global::System.Int32 itemID, global::System.String itemName, global::System.String controlID, global::System.String type, global::System.Int32 address, global::System.Int32 bitNo, global::System.Int32 length, global::System.Double valueScale, global::System.Double offset, global::System.Double coefficient, global::System.Boolean isShow)
 {
     tblItemConfig tblItemConfig = new tblItemConfig();
     tblItemConfig.ItemID = itemID;
     tblItemConfig.ItemName = itemName;
     tblItemConfig.ControlID = controlID;
     tblItemConfig.Type = type;
     tblItemConfig.Address = address;
     tblItemConfig.BitNo = bitNo;
     tblItemConfig.Length = length;
     tblItemConfig.ValueScale = valueScale;
     tblItemConfig.Offset = offset;
     tblItemConfig.Coefficient = coefficient;
     tblItemConfig.IsShow = isShow;
     return tblItemConfig;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 將新物件加入 tblItemConfig EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddTotblItemConfig(tblItemConfig tblItemConfig)
 {
     base.AddObject("tblItemConfig", tblItemConfig);
 }