Dear Support Engineer,
We are working with XAF with Custom Modules in our application in a winforms application.
Which means that we have any functionality in a Module, and a shared codebase.
Functionality like Sales, Purchase are in a shared codebase, custom made functionality or specialized functionality like financial calculation is a Module.
Which works fine.
We are working on porting our XAF application to Blazor as well (We removed the option in the past with WebForms), but it seems we cannot do this like we want.
We use Xaf and XPO together.
We need:
- Multitenancy
- Modules loading on demand, which differ per tenant, so it can depend on the current login.
- Modules that can change XpObjects on the fly.
The third we are now (WinForms) working on in ModuleBase with:
C#public override void CustomizeTypesInfo(ITypesInfo typesInfo)
{
base.CustomizeTypesInfo(typesInfo);
var customerType= typesInfo.FindTypeInfo(typeof(Customer));
var customField = customerType.CreateMember("CustomFieldInModule", typeof(string));
}
How to get this to work?