Skip to main content
All docs
V24.1

IEFContextProvider.GetContext(String, Type) Method

Returns the Entity Framework Core context for the specified data source.

Namespace: DevExpress.Data.Entity

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

object GetContext(
    string connectionName,
    Type contextType
)

Parameters

Name Type Description
connectionName String

The name of an Entity Framework connection string.

contextType Type

The type of DbContext created by the factory.

Returns

Type Description
Object

The context object.

See Also