コード例 #1
0
 /// <summary>
 /// Create a new Device object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="deviceName">Initial value of the DeviceName property.</param>
 /// <param name="hexMode">Initial value of the HexMode property.</param>
 public static Device CreateDevice(global::System.Int32 id, global::System.String deviceName, global::System.Boolean hexMode)
 {
     Device device = new Device();
     device.Id = id;
     device.DeviceName = deviceName;
     device.HexMode = hexMode;
     return device;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Devices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToDevices(Device device)
 {
     base.AddObject("Devices", device);
 }