public static AllocationRuleDestination CreateAllocationRuleDestination(string dataAreaId, string rule, decimal lineNumber, decimal fixedWeight, decimal fixedPercentage, global::Microsoft.Dynamics.DataEntities.AllocationRule allocationRule) { AllocationRuleDestination allocationRuleDestination = new AllocationRuleDestination(); allocationRuleDestination.dataAreaId = dataAreaId; allocationRuleDestination.Rule = rule; allocationRuleDestination.LineNumber = lineNumber; allocationRuleDestination.FixedWeight = fixedWeight; allocationRuleDestination.FixedPercentage = fixedPercentage; if ((allocationRule == null)) { throw new global::System.ArgumentNullException("allocationRule"); } allocationRuleDestination.AllocationRule = allocationRule; return(allocationRuleDestination); }
public static AllocationRuleSource CreateAllocationRuleSource(string dataAreaId, string rule, decimal lineNumber, global::Microsoft.Dynamics.DataEntities.AllocationRule allocationRule) { AllocationRuleSource allocationRuleSource = new AllocationRuleSource(); allocationRuleSource.dataAreaId = dataAreaId; allocationRuleSource.Rule = rule; allocationRuleSource.LineNumber = lineNumber; if ((allocationRule == null)) { throw new global::System.ArgumentNullException("allocationRule"); } allocationRuleSource.AllocationRule = allocationRule; return(allocationRuleSource); }
partial void OnAllocationRuleChanging(global::Microsoft.Dynamics.DataEntities.AllocationRule value);