public static EngineeringChangeSeverityRule CreateEngineeringChangeSeverityRule(string dataAreaId, string severityName, decimal ruleSetSequenceNumber, string ruleClassName, global::Microsoft.Dynamics.DataEntities.EngineeringChangeSeverityRuleSet engineeringChangeSeverityRuleSet)
        {
            EngineeringChangeSeverityRule engineeringChangeSeverityRule = new EngineeringChangeSeverityRule();

            engineeringChangeSeverityRule.dataAreaId            = dataAreaId;
            engineeringChangeSeverityRule.SeverityName          = severityName;
            engineeringChangeSeverityRule.RuleSetSequenceNumber = ruleSetSequenceNumber;
            engineeringChangeSeverityRule.RuleClassName         = ruleClassName;
            if ((engineeringChangeSeverityRuleSet == null))
            {
                throw new global::System.ArgumentNullException("engineeringChangeSeverityRuleSet");
            }
            engineeringChangeSeverityRule.EngineeringChangeSeverityRuleSet = engineeringChangeSeverityRuleSet;
            return(engineeringChangeSeverityRule);
        }
 partial void OnEngineeringChangeSeverityRuleSetChanging(global::Microsoft.Dynamics.DataEntities.EngineeringChangeSeverityRuleSet value);