Skip to main content
All docs
V23.2

IEFContextProvider.GetContext(String, Type) Method

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

Namespace: DevExpress.Data.Entity

Assembly: DevExpress.Data.v23.2.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