コード例 #1
0
 /// <summary>
 /// 创建新的 MechineInfo 对象。
 /// </summary>
 /// <param name="mechineID">MechineID 属性的初始值。</param>
 /// <param name="manageDeptID">ManageDeptID 属性的初始值。</param>
 /// <param name="machineTypeID">MachineTypeID 属性的初始值。</param>
 /// <param name="communicationInterface">CommunicationInterface 属性的初始值。</param>
 public static MechineInfo CreateMechineInfo(global::System.String mechineID, global::System.Int32 manageDeptID, global::System.Int32 machineTypeID, global::System.Int32 communicationInterface)
 {
     MechineInfo mechineInfo = new MechineInfo();
     mechineInfo.MechineID = mechineID;
     mechineInfo.ManageDeptID = manageDeptID;
     mechineInfo.MachineTypeID = machineTypeID;
     mechineInfo.CommunicationInterface = communicationInterface;
     return mechineInfo;
 }
コード例 #2
0
 /// <summary>
 /// 用于向 MechineInfo EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToMechineInfo(MechineInfo mechineInfo)
 {
     base.AddObject("MechineInfo", mechineInfo);
 }