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