/// <summary> /// Create a new Device object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="deviceID">Initial value of the DeviceID property.</param> /// <param name="vendor">Initial value of the Vendor property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="hardwareID">Initial value of the HardwareID property.</param> /// <param name="compatibleID">Initial value of the CompatibleID property.</param> public static Device CreateDevice(global::System.Int32 id, global::System.String deviceID, global::System.String vendor, global::System.String name, global::System.String description, global::System.String hardwareID, global::System.String compatibleID) { Device device = new Device(); device.Id = id; device.DeviceID = deviceID; device.Vendor = vendor; device.Name = name; device.Description = description; device.HardwareID = hardwareID; device.CompatibleID = compatibleID; return device; }
/// <summary> /// Deprecated Method for adding a new object to the Devices EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDevices(Device device) { base.AddObject("Devices", device); }