The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

Session.AutoCreateOption Property

Gets or sets the action which is performed when the session is connected to a data store.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[DefaultValue(AutoCreateOption.DatabaseAndSchema)]
public AutoCreateOption AutoCreateOption { get; set; }
<DefaultValue(AutoCreateOption.DatabaseAndSchema)>
Public Property AutoCreateOption As AutoCreateOption
[DefaultValue(AutoCreateOption.DatabaseAndSchema)]
public AutoCreateOption AutoCreateOption { get; set; }
<DefaultValue(AutoCreateOption.DatabaseAndSchema)>
Public Property AutoCreateOption As AutoCreateOption

Property Value

Type Default Description
AutoCreateOption

DatabaseAndSchema

An AutoCreateOption enumeration value which specifies the action which is performed when the session is connected to a data store.

Property Value

Type Default Description
AutoCreateOption

DatabaseAndSchema

An AutoCreateOption enumeration value which specifies the action which is performed when the session is connected to a data store.

Remarks

To connect a session to a database use the Session.Connect method. The AutoCreateOption property specifies the action which is performed when the session is connected to a data store. For a list of available actions, see the AutoCreateOption topic.

If the AutoCreateOption property is set to the AutoCreateOption.None value, the SchemaCorrectionNeededException is raised every time the database metadata is mismatched.

See Also