.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+

EFObjectSpace(ITypesInfo, EFTypeInfoSource, CreateObjectContextHandler, UpdateSchemaHandler) Constructor

Creates a new instance of the EFObjectSpace class.

Namespace: DevExpress.ExpressApp.EF

Assembly: DevExpress.ExpressApp.EF.v21.1.dll


public EFObjectSpace(
    ITypesInfo typesInfo,
    EFTypeInfoSource typeInfoSource,
    CreateObjectContextHandler createObjectContextDelegate,
    UpdateSchemaHandler updateSchemaDelegate


Name Type Description
typesInfo ITypesInfo

An ITypesInfo object providing access to XAF-related information on business classes.

typeInfoSource DevExpress.ExpressApp.EF.EFTypeInfoSource

An EFTypeInfoSource object that provides Entity Framework - related information on business classes.

createObjectContextDelegate DevExpress.ExpressApp.EF.CreateObjectContextHandler

A CreateObjectContextHandler object that is a delegate encapsulating a method for creating an ObjectContext for the current Object Space.

updateSchemaDelegate DevExpress.ExpressApp.EF.UpdateSchemaHandler

A UpdateSchemaHandler object that is a delegate encapsulating a method for updating schema.


When you need to create an Object Space (for example, to create a View), do not create it manually. Instead, use the XafApplication.CreateObjectSpace method.

If you cannot access the XafApplication object, use this constructor.

See Also