partial void OnAssetMaintenanceSpecificationTypeChanging(global::Microsoft.Dynamics.DataEntities.AssetMaintenanceSpecificationType value);
        public static AssetMaintenanceAssetAttribute CreateAssetMaintenanceAssetAttribute(string dataAreaId,
                                                                                          string maintenanceAssetId,
                                                                                          string attributeTypeId,
                                                                                          decimal valueReal,
                                                                                          global::System.DateTimeOffset valueDate,
                                                                                          int valueInteger,
                                                                                          int line,
                                                                                          global::Microsoft.Dynamics.DataEntities.AssetMaintenanceSpecificationType assetMaintenanceSpecificationType)
        {
            AssetMaintenanceAssetAttribute assetMaintenanceAssetAttribute = new AssetMaintenanceAssetAttribute();

            assetMaintenanceAssetAttribute.dataAreaId         = dataAreaId;
            assetMaintenanceAssetAttribute.MaintenanceAssetId = maintenanceAssetId;
            assetMaintenanceAssetAttribute.AttributeTypeId    = attributeTypeId;
            assetMaintenanceAssetAttribute.ValueReal          = valueReal;
            assetMaintenanceAssetAttribute.ValueDate          = valueDate;
            assetMaintenanceAssetAttribute.ValueInteger       = valueInteger;
            assetMaintenanceAssetAttribute.Line = line;
            if ((assetMaintenanceSpecificationType == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceSpecificationType");
            }
            assetMaintenanceAssetAttribute.AssetMaintenanceSpecificationType = assetMaintenanceSpecificationType;
            return(assetMaintenanceAssetAttribute);
        }
        public static AssetMaintenanceFunctionalLocationAttributeSpecification CreateAssetMaintenanceFunctionalLocationAttributeSpecification(string dataAreaId,
                                                                                                                                              string functionalLocationId,
                                                                                                                                              string attributeTypeId,
                                                                                                                                              decimal valueReal,
                                                                                                                                              global::System.DateTimeOffset valueDate,
                                                                                                                                              int valueInteger,
                                                                                                                                              global::Microsoft.Dynamics.DataEntities.AssetMaintenanceSpecificationType assetMaintenanceSpecificationType,
                                                                                                                                              global::Microsoft.Dynamics.DataEntities.AssetMaintenanceFunctionalLocation assetMaintenanceFunctionalLocation)
        {
            AssetMaintenanceFunctionalLocationAttributeSpecification assetMaintenanceFunctionalLocationAttributeSpecification = new AssetMaintenanceFunctionalLocationAttributeSpecification();

            assetMaintenanceFunctionalLocationAttributeSpecification.dataAreaId           = dataAreaId;
            assetMaintenanceFunctionalLocationAttributeSpecification.FunctionalLocationId = functionalLocationId;
            assetMaintenanceFunctionalLocationAttributeSpecification.AttributeTypeId      = attributeTypeId;
            assetMaintenanceFunctionalLocationAttributeSpecification.ValueReal            = valueReal;
            assetMaintenanceFunctionalLocationAttributeSpecification.ValueDate            = valueDate;
            assetMaintenanceFunctionalLocationAttributeSpecification.ValueInteger         = valueInteger;
            if ((assetMaintenanceSpecificationType == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceSpecificationType");
            }
            assetMaintenanceFunctionalLocationAttributeSpecification.AssetMaintenanceSpecificationType = assetMaintenanceSpecificationType;
            if ((assetMaintenanceFunctionalLocation == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceFunctionalLocation");
            }
            assetMaintenanceFunctionalLocationAttributeSpecification.AssetMaintenanceFunctionalLocation = assetMaintenanceFunctionalLocation;
            return(assetMaintenanceFunctionalLocationAttributeSpecification);
        }
        public static AssetMaintenanceAssetTypeAttribute CreateAssetMaintenanceAssetTypeAttribute(string dataAreaId, string maintenanceAssetTypeId, string attributeTypeId, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceSpecificationType assetMaintenanceSpecificationType, global::Microsoft.Dynamics.DataEntities.AssetMaintenanceAssetType assetMaintenanceAssetType)
        {
            AssetMaintenanceAssetTypeAttribute assetMaintenanceAssetTypeAttribute = new AssetMaintenanceAssetTypeAttribute();

            assetMaintenanceAssetTypeAttribute.dataAreaId             = dataAreaId;
            assetMaintenanceAssetTypeAttribute.MaintenanceAssetTypeId = maintenanceAssetTypeId;
            assetMaintenanceAssetTypeAttribute.AttributeTypeId        = attributeTypeId;
            if ((assetMaintenanceSpecificationType == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceSpecificationType");
            }
            assetMaintenanceAssetTypeAttribute.AssetMaintenanceSpecificationType = assetMaintenanceSpecificationType;
            if ((assetMaintenanceAssetType == null))
            {
                throw new global::System.ArgumentNullException("assetMaintenanceAssetType");
            }
            assetMaintenanceAssetTypeAttribute.AssetMaintenanceAssetType = assetMaintenanceAssetType;
            return(assetMaintenanceAssetTypeAttribute);
        }