Skip to main content

XPDictionary.GetDataStoreSchema(Assembly[]) Method

Gets the complete schema of a data store that corresponds to the persistent objects which are defined within the specified assemblies.

Namespace: DevExpress.Xpo.Metadata

Assembly: DevExpress.Xpo.v24.2.dll

Declaration

public DBTable[] GetDataStoreSchema(
    params Assembly[] assemblies
)

Parameters

Name Type Description
assemblies Assembly[]

An array of assemblies which contain the persistent objects.

Returns

Type Description
DBTable[]

An array of data tables of the DBTable type that correspond to the persistent objects which are defined in the assemblies within the assemblies array.

Remarks

The GetDataStoreSchema method enumerates all the types available in the specified assemblies. Some types may reference other assemblies. If CLR cannot load a referenced assembly, it throws the FileNotFoundException, FileLoadException, or BadImageFormatException. The GetDataStoreSchema method handles all exceptions and skips the problematic assembly without adding corresponding persistent classes to the dictionary.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetDataStoreSchema(Assembly[]) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also