/// <summary> /// Create a new Asset object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="reference">Initial value of the Reference property.</param> /// <param name="assetDescription">Initial value of the AssetDescription property.</param> /// <param name="inUse">Initial value of the InUse property.</param> /// <param name="assetType_Asset">Initial value of the AssetType_Asset property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static Asset CreateAsset(global::System.Int32 id, global::System.String reference, global::System.String assetDescription, global::System.Boolean inUse, global::System.Int32 assetType_Asset, global::System.Byte[] rowVersion) { Asset asset = new Asset(); asset.Id = id; asset.Reference = reference; asset.AssetDescription = assetDescription; asset.InUse = inUse; asset.AssetType_Asset = assetType_Asset; asset.RowVersion = rowVersion; return asset; }
/// <summary> /// Deprecated Method for adding a new object to the Assets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAssets(Asset asset) { base.AddObject("Assets", asset); }