.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

InMemoryDataStore(AutoCreateOption, Boolean) Constructor

Initializes a new instance of the InMemoryDataStore class with the specified settings.

Namespace: DevExpress.Xpo.DB

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

public InMemoryDataStore(
    AutoCreateOption autoCreateOption,
    bool caseSensitive
)
Public Sub New(
    autoCreateOption As AutoCreateOption,
    caseSensitive As Boolean
)

Parameters

Name Type Description
autoCreateOption AutoCreateOption

An AutoCreateOption value that specifies which operations should be performed when storage is accessed for the first time. This parameter is used to initialize the IDataStore.AutoCreateOption property.

caseSensitive Boolean

true if case-sensitive comparisons should be performed for strings during expression evaluations or sorting; otherwise false.

Remarks

Usually, a Session object creates a connection provider manually, based on the information supplied by the connection string. There are also cases when you need to create the connection provider manually via its constructor, for example:

  • when sharing a single IDataLayer object between multiple sessions. A connection provider should be passed to the data layer's constructor. See the IDataLayer topic, for additional information.
See Also