The requested page is not available for the requested platform. You are viewing the content for Default platform.

EFObjectSpace(ITypesInfo, EFTypeInfoSource, CreateObjectContextHandler) Constructor

Creates a new instance of the EFObjectSpace class.

Namespace: DevExpress.ExpressApp.EF

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


public EFObjectSpace(
    ITypesInfo typesInfo,
    EFTypeInfoSource typeInfoSource,
    CreateObjectContextHandler createObjectContextDelegate
Public Sub New(
    typesInfo As ITypesInfo,
    typeInfoSource As EFTypeInfoSource,
    createObjectContextDelegate As CreateObjectContextHandler


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 information on business classes related to the Entity Framework.

createObjectContextDelegate DevExpress.ExpressApp.EF.CreateObjectContextHandler

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


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