=====================================
This example is now obsolete. Instead, refer to the How to implement XPO data models connected to different databases within a single application one.
=====================================
Usually, the connection to the database is set up in the executable application project. Usually, it is performed in the configuration file or directly in the code of the application's designer or within the Main function/Global application class. To learn more, please check out this help topic: Connect an XAF Application to a Database Provider
In this example, you will learn how to establish a connection to the database directly from your Module project. To do this, you will have to override the Setup method of your Module class and handle the CreateCustomObjectSpaceProvider event of the XafApplication class.
See Also:
How to implement XPO data models connected to different databases within a single application
↧
OBSOLETE - How to setup a connection to the database from a Module project instead of an executable application project
↧