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

SimpleObjectLayer.FromDataLayer(IDataLayer) Method

Creates a new SimpleObjectLayer and initializes it with a specified data access layer.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v20.1.dll

Declaration

public static SimpleObjectLayer FromDataLayer(
    IDataLayer dataLayer
)
Public Shared Function FromDataLayer(
    dataLayer As IDataLayer
) As SimpleObjectLayer

Parameters

Name Type Description
dataLayer IDataLayer

An object implementing the IDataLayer interface.

Returns

Type Description
SimpleObjectLayer

A SimpleObjectLayer object which is initialized with the dataLayer. null (Nothing in Visual Basic) is returned if the dataLayer is not specified.

See Also