Skip to main content
All docs
V25.1
  • IEFContextProvider.GetContext(String, Type) Method

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

    Namespace: DevExpress.Data.Entity

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