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.Connect(IDataLayer, IDisposable[]) Method

Connects the session to a data store using a specified data access layer.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

public void Connect(
    IDataLayer layer,
    params IDisposable[] disposeOnDisconnect
)
Public Sub Connect(
    layer As IDataLayer,
    ParamArray disposeOnDisconnect As IDisposable()
)
public void Connect(
    IDataLayer layer,
    params IDisposable[] disposeOnDisconnect
)
Public Sub Connect(
    layer As IDataLayer,
    ParamArray disposeOnDisconnect As IDisposable()
)

Parameters

Name Type Description
layer IDataLayer

An object implementing the IDataLayer interface.

disposeOnDisconnect IDisposable[]

An array of objects to be automatically disposed of when the session is disconnected from a data store.

Parameters

Name Type Description
layer IDataLayer

An object implementing the IDataLayer interface.

disposeOnDisconnect IDisposable[]

An array of objects to be automatically disposed of when the session is disconnected from a data store.

Remarks

This method does the following.

See Also