public static AdvancedRuleStructureActivation CreateAdvancedRuleStructureActivation(string advancedRuleStructure, global::Microsoft.Dynamics.DataEntities.LedgerAdvancedRuleStructure ledgerAdvancedRuleStructureActivationEntity_RelatedRole_LedgerAdvancedRuleStructureEntity) { AdvancedRuleStructureActivation advancedRuleStructureActivation = new AdvancedRuleStructureActivation(); advancedRuleStructureActivation.AdvancedRuleStructure = advancedRuleStructure; if ((ledgerAdvancedRuleStructureActivationEntity_RelatedRole_LedgerAdvancedRuleStructureEntity == null)) { throw new global::System.ArgumentNullException("ledgerAdvancedRuleStructureActivationEntity_RelatedRole_LedgerAdvancedRuleStructureEntity"); } advancedRuleStructureActivation.LedgerAdvancedRuleStructureActivationEntity_RelatedRole_LedgerAdvancedRuleStructureEntity = ledgerAdvancedRuleStructureActivationEntity_RelatedRole_LedgerAdvancedRuleStructureEntity; return(advancedRuleStructureActivation); }
partial void OnLedgerAdvancedRuleEntity_RelatedRole_LedgerAdvancedRuleStructureEntity2Changing(global::Microsoft.Dynamics.DataEntities.LedgerAdvancedRuleStructure value);
public static LedgerAdvancedRuleStructureConstraint CreateLedgerAdvancedRuleStructureConstraint(string advancedRuleStructure, int position, global::System.DateTimeOffset activeFrom, global::System.DateTimeOffset activeTo, global::Microsoft.Dynamics.DataEntities.LedgerAdvancedRuleStructure ledgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureEntity) { LedgerAdvancedRuleStructureConstraint ledgerAdvancedRuleStructureConstraint = new LedgerAdvancedRuleStructureConstraint(); ledgerAdvancedRuleStructureConstraint.AdvancedRuleStructure = advancedRuleStructure; ledgerAdvancedRuleStructureConstraint.Position = position; ledgerAdvancedRuleStructureConstraint.ActiveFrom = activeFrom; ledgerAdvancedRuleStructureConstraint.ActiveTo = activeTo; if ((ledgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureEntity == null)) { throw new global::System.ArgumentNullException("ledgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureEntity"); } ledgerAdvancedRuleStructureConstraint.LedgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureEntity = ledgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureConstraintEntity_RelatedRole_LedgerAdvancedRuleStructureEntity; return(ledgerAdvancedRuleStructureConstraint); }