/// <summary> /// Deprecated Method for adding a new object to the ShortTermAssets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToShortTermAssets(ShortTermAsset shortTermAsset) { base.AddObject("ShortTermAssets", shortTermAsset); }
/// <summary> /// Create a new ShortTermAsset object. /// </summary> /// <param name="shortTermAssetID">Initial value of the ShortTermAssetID property.</param> /// <param name="departmentID">Initial value of the DepartmentID property.</param> /// <param name="shortTermItemName">Initial value of the ShortTermItemName property.</param> /// <param name="shortTermTotalQuantity">Initial value of the ShortTermTotalQuantity property.</param> public static ShortTermAsset CreateShortTermAsset(global::System.Int16 shortTermAssetID, global::System.Int16 departmentID, global::System.String shortTermItemName, global::System.Byte shortTermTotalQuantity) { ShortTermAsset shortTermAsset = new ShortTermAsset(); shortTermAsset.ShortTermAssetID = shortTermAssetID; shortTermAsset.DepartmentID = departmentID; shortTermAsset.ShortTermItemName = shortTermItemName; shortTermAsset.ShortTermTotalQuantity = shortTermTotalQuantity; return shortTermAsset; }