public static InjuryIncidentCostType CreateInjuryIncidentCostType(string caseNumber, decimal lineNum, global::System.DateTimeOffset costDate, decimal costAmount, global::Microsoft.Dynamics.DataEntities.InjuryCostType injuryCostType, global::Microsoft.Dynamics.DataEntities.InjuryIncident injuryIncident) { InjuryIncidentCostType injuryIncidentCostType = new InjuryIncidentCostType(); injuryIncidentCostType.CaseNumber = caseNumber; injuryIncidentCostType.LineNum = lineNum; injuryIncidentCostType.CostDate = costDate; injuryIncidentCostType.CostAmount = costAmount; if ((injuryCostType == null)) { throw new global::System.ArgumentNullException("injuryCostType"); } injuryIncidentCostType.InjuryCostType = injuryCostType; if ((injuryIncident == null)) { throw new global::System.ArgumentNullException("injuryIncident"); } injuryIncidentCostType.InjuryIncident = injuryIncident; return(injuryIncidentCostType); }
partial void OnInjuryCostTypeChanging(global::Microsoft.Dynamics.DataEntities.InjuryCostType value);