DataStoreBase.AutoCreateOption Property
Returns which operations are performed when a data store is accessed for the first time.
Namespace: DevExpress.Xpo.DB
Assembly: DevExpress.Data.v24.2.dll
NuGet Package: DevExpress.Data
#Declaration
public override AutoCreateOption AutoCreateOption { get; }
#Property Value
Type | Description |
---|---|
Auto |
An Auto |
Available values:
Name | Description |
---|---|
Database |
A session will try to automatically create the database if it doesn’t exist. It will also create or update the database schema for any persistent classes currently being used. |
Schema |
A session will automatically create or update the database schema for the persistent classes currently being used. If the database doesn’t exist, it won’t be created by a session. |
None | A session will not automatically create the database or update the database schema. The database schema is still queried and checked to match the currently used persistent class metadata. |
Schema |
A session will never query the database for schema to validate against persistent class metadata. This will suppress the Schema |
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoCreateOption property.
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.