Please use DataLayer.SchemaInit event handler
Occurs after the data schema is initialized or updated.
NuGet Package: DevExpress.Xpo
The SchemaInit event's data class is SchemaInitEventArgs. The following properties provide information specific to this event:
|Gets an SQL statement which can be executed while connected to an SQL data source.
|Gets an object metadata the schema for which has been created in storage.
The SchemaInit event is raised each time XPO renders data schema to store persistent objects.