public EARepository2() { this.AddModel("test model", m => m.AddPackage("bLibrary", bLibrary => { bLibrary.Element.Stereotype = Stereotype.bLibrary; bLibrary.AddTaggedValue(TaggedValues.baseURN.ToString()).WithValue("urn:test:blib1"); bLibrary.AddPackage("PRIMLibrary", InitPRIMLibrary); bLibrary.AddPackage("ENUMLibrary", InitENUMLibrary); bLibrary.AddPackage("CDTLibrary", InitCDTLibrary); bLibrary.AddPackage("BDTLibrary", InitBDTLibrary); bLibrary.AddPackage("CCLibrary", InitCCLibrary); bLibrary.AddPackage("BIELibrary", InitBIELibrary); bLibrary.AddPackage("DOCLibrary", InitDOCLibrary); })); bdtSimpleString.AddBasedOnDependency(cdtSimpleString); bdtCurrency.AddBasedOnDependency(cdtCurrency); bdtMeasure.AddBasedOnDependency(cdtMeasure); bdtCode.AddBasedOnDependency(cdtCode); bdtDate.AddBasedOnDependency(cdtDate); bdtText.AddBasedOnDependency(cdtText); abieAddress.AddBasedOnDependency(accAddress); accPerson.AddASCC(accAddress, "homeAddress"); accPerson.AddASCC(accAddress, "workAddress", "0", "*"); abiePerson.AddASBIE(abieAddress, "homeAddress", EaAggregationKind.Shared); abiePerson.AddASBIE(abieAddress, "workAddress", EaAggregationKind.Composite, "0", "*"); abieInvoice.AddASBIE(abieInvoiceInfo, "info", EaAggregationKind.Shared); abieInvoiceInfo.AddASBIE(abieAddress, "deliveryAddress", EaAggregationKind.Shared); }
public EARepositoryAbieEditor() { this.AddModel("test model", InitTestModel); bdtMeasure.AddBasedOnDependency(cdtMeasure); bdtCode.AddBasedOnDependency(cdtCode); bdtABCCode.AddBasedOnDependency(cdtCode); bdtDate.AddBasedOnDependency(cdtDate); bdtText.AddBasedOnDependency(cdtText); bieMyAddress.AddBasedOnDependency(accAddress); accPerson.AddASCC(accAddress, "homeAddress"); accPerson.AddASCC(accAddress, "workAddress", "0", "*"); bieMyPerson.AddASBIE(bieMyAddress, "homeAddress", EaAggregationKind.Shared); bieMyPerson.AddBasedOnDependency(accPerson); bieMyPerson.AddASBIE(bieMyAddress, "workAddress", EaAggregationKind.Composite, "0", "*"); bieInvoice.AddASBIE(bieInvoiceInfo, "info", EaAggregationKind.Shared); bieInvoiceInfo.AddASBIE(bieMyAddress, "deliveryAddress", EaAggregationKind.Shared); }