Skip to main content
All docs
V25.1
  • .NET 8.0+

    XPObjectSpaceProvider(String, IDbConnection, Boolean, Boolean) Constructor

    Initializes a new instance of the XPObjectSpaceProvider class.

    Namespace: DevExpress.ExpressApp.Xpo

    Assembly: DevExpress.ExpressApp.Xpo.v25.1.dll

    NuGet Package: DevExpress.ExpressApp.Xpo

    Declaration

    public XPObjectSpaceProvider(
        string connectionString,
        IDbConnection connection,
        bool threadSafe,
        bool useSeparateDataLayers = false
    )

    Parameters

    Name Type Description
    connectionString String

    A string value that is the application’s connection string.

    connection IDbConnection

    An IDbConnection object that specifies the database connection.

    threadSafe Boolean

    true, if the ThreadSafeDataLayer Data Access Layer should be used; otherwise, false.

    Optional Parameters

    Name Type Default Description
    useSeparateDataLayers Boolean False

    true, if a separate SimpleDataLayer Data Access Layer should be created for each Object Space when the threadSafe parameter is set to false; otherwise, false.

    See Also