To separate logic of a XAF module. I decided to break it into some projects projects:
Accounting
---Accounting.Module
---Accounting.BusinessModels
---Accounting.Data
Inventory
---Inventory.Module
---Inventory.BusinessModels ( Contains POCO)
---Inventory.Data ( Contains DbContext)
But unfortunately I cant find the business models of Accounting.BusinessModles
in the Model Editor of Accounting.Module
. I've already added required references to the Accounting.Module
project.
Is it true that XAF just discovers the models inside the BusinesObjects
folder of Accounting.Module
project?
Your projects should be a XAF module which means that they should contain a class that derives XAF ModuleBase. Then XAF is able to recognize your objects wherever you put them.