/// <summary> /// Create a new AssetType object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="assetTypeDescription">Initial value of the AssetTypeDescription property.</param> /// <param name="inUse">Initial value of the InUse property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static AssetType CreateAssetType(global::System.Int32 id, global::System.String assetTypeDescription, global::System.Boolean inUse, global::System.Byte[] rowVersion) { AssetType assetType = new AssetType(); assetType.Id = id; assetType.AssetTypeDescription = assetTypeDescription; assetType.InUse = inUse; assetType.RowVersion = rowVersion; return assetType; }
/// <summary> /// Deprecated Method for adding a new object to the AssetTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAssetTypes(AssetType assetType) { base.AddObject("AssetTypes", assetType); }