partial void OnAssetMaintenanceAssetLifecycleStateChanging(global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAssetLifecycleState value);
public static AssetMaintenanceAssetLifecycleModelState CreateAssetMaintenanceAssetLifecycleModelState(string dataAreaId, string lifecycleModelId, string lifecycleStateId, int line, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAssetLifecycleModel assetMaintenanceAssetLifecycleModel, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAssetLifecycleState assetMaintenanceAssetLifecycleState) { AssetMaintenanceAssetLifecycleModelState assetMaintenanceAssetLifecycleModelState = new AssetMaintenanceAssetLifecycleModelState(); assetMaintenanceAssetLifecycleModelState.dataAreaId = dataAreaId; assetMaintenanceAssetLifecycleModelState.LifecycleModelId = lifecycleModelId; assetMaintenanceAssetLifecycleModelState.LifecycleStateId = lifecycleStateId; assetMaintenanceAssetLifecycleModelState.Line = line; if ((assetMaintenanceAssetLifecycleModel == null)) { throw new global::System.ArgumentNullException("assetMaintenanceAssetLifecycleModel"); } assetMaintenanceAssetLifecycleModelState.AssetMaintenanceAssetLifecycleModel = assetMaintenanceAssetLifecycleModel; if ((assetMaintenanceAssetLifecycleState == null)) { throw new global::System.ArgumentNullException("assetMaintenanceAssetLifecycleState"); } assetMaintenanceAssetLifecycleModelState.AssetMaintenanceAssetLifecycleState = assetMaintenanceAssetLifecycleState; return(assetMaintenanceAssetLifecycleModelState); }