What's the correct way to replace Mapping Explorer on ManagerCreate event?

Hello,

Using OnManagerCreate, I can set some properties from Args.Manager.Explorer (except stuff that clains 'mapping is already loaded'). AND, I can create a new Explorer AND ObjectManager:

Args.Manager := TObjectManager.Create(GetNewConnection, MyCustomExplorer);

I'm wondering if there's a safe way to replace the Manager's Explorer without having to create a new one.

Args.Manager.UseThisCustomExplorer( MyCustomExplorer );

??

BTW, does XData supports Aurelius Dynamic Properties?

Regards,

There is no much sense in replace the explorer for the manager in OnManagerCreate event. It's easier to just create your own manager and use it.

Yes, dynamic properties are supported.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.