EFObjectSpace(ITypesInfo, EFTypeInfoSource, CreateObjectContextHandler, UpdateSchemaHandler) Constructor

Creates a new instance of the EFObjectSpace class.

Namespace: DevExpress.ExpressApp.EF

Assembly: DevExpress.ExpressApp.EF.v18.2.dll

Declaration

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

Parameters

Type Name Description
ITypesInfo typesInfo

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

DevExpress.ExpressApp.EF.EFTypeInfoSource typeInfoSource

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

DevExpress.ExpressApp.EF.CreateObjectContextHandler createObjectContextDelegate

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

DevExpress.ExpressApp.EF.UpdateSchemaHandler updateSchemaDelegate

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