/// <summary> /// Deprecated Method for adding a new object to the EquipmentTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEquipmentTypes(EquipmentType equipmentType) { base.AddObject("EquipmentTypes", equipmentType); }
/// <summary> /// Create a new EquipmentType object. /// </summary> /// <param name="equipmentTypeId">Initial value of the EquipmentTypeId property.</param> /// <param name="itemNumber">Initial value of the ItemNumber property.</param> /// <param name="modelNumber">Initial value of the ModelNumber property.</param> /// <param name="equipName">Initial value of the EquipName property.</param> /// <param name="price">Initial value of the Price property.</param> /// <param name="equipmentCategoryId">Initial value of the EquipmentCategoryId property.</param> public static EquipmentType CreateEquipmentType(global::System.Int32 equipmentTypeId, global::System.Int32 itemNumber, global::System.String modelNumber, global::System.String equipName, global::System.Int32 price, global::System.Int32 equipmentCategoryId) { EquipmentType equipmentType = new EquipmentType(); equipmentType.EquipmentTypeId = equipmentTypeId; equipmentType.ItemNumber = itemNumber; equipmentType.ModelNumber = modelNumber; equipmentType.EquipName = equipName; equipmentType.Price = price; equipmentType.EquipmentCategoryId = equipmentCategoryId; return equipmentType; }