SchemaCorrectionNeededException Class
An exception that is thrown when the storage schema doesn’t match the structure of persistent objects and the schema cannot be modified.
Namespace: DevExpress.Xpo.DB.Exceptions
Assembly: DevExpress.Data.v22.1.dll
Declaration
Remarks
This exception is raised when the storage schema doesn’t match the structure of persistent objects and the schema cannot be modified (for instance, if the IDataStore.AutoCreateOption option is set to AutoCreateOption.None or AutoCreateOption.SchemaAlreadyExists).
Solution:
- check the AutoCreateOption options.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SchemaCorrectionNeededException class.
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.