/// <summary> /// Deprecated Method for adding a new object to the Peripherals EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPeripherals(Peripheral peripheral) { base.AddObject("Peripherals", peripheral); }
/// <summary> /// Create a new Peripheral object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="type">Initial value of the type property.</param> /// <param name="producer">Initial value of the producer property.</param> /// <param name="configId">Initial value of the configId property.</param> public static Peripheral CreatePeripheral(global::System.Int32 id, global::System.String name, global::System.String type, global::System.String producer, global::System.Int32 configId) { Peripheral peripheral = new Peripheral(); peripheral.id = id; peripheral.name = name; peripheral.type = type; peripheral.producer = producer; peripheral.configId = configId; return peripheral; }