.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XPObjectSpace(ITypesInfo, XpoTypeInfoSource, CreateUnitOfWorkHandler) Constructor

Creates a new instance of the XPObjectSpace class.

Namespace: DevExpress.ExpressApp.Xpo

Assembly: DevExpress.ExpressApp.Xpo.v19.2.dll

Declaration

public XPObjectSpace(
    ITypesInfo typesInfo,
    XpoTypeInfoSource xpoTypeInfoSource,
    CreateUnitOfWorkHandler createUnitOfWorkDelegate
)
Public Sub New(
    typesInfo As ITypesInfo,
    xpoTypeInfoSource As XpoTypeInfoSource,
    createUnitOfWorkDelegate As CreateUnitOfWorkHandler
)
public XPObjectSpace(
    ITypesInfo typesInfo,
    XpoTypeInfoSource xpoTypeInfoSource,
    CreateUnitOfWorkHandler createUnitOfWorkDelegate
)
Public Sub New(
    typesInfo As ITypesInfo,
    xpoTypeInfoSource As XpoTypeInfoSource,
    createUnitOfWorkDelegate As CreateUnitOfWorkHandler
)
public XPObjectSpace(
    ITypesInfo typesInfo,
    XpoTypeInfoSource xpoTypeInfoSource,
    CreateUnitOfWorkHandler createUnitOfWorkDelegate
)
Public Sub New(
    typesInfo As ITypesInfo,
    xpoTypeInfoSource As XpoTypeInfoSource,
    createUnitOfWorkDelegate As CreateUnitOfWorkHandler
)

Parameters

Name Type Description
typesInfo ITypesInfo

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

xpoTypeInfoSource DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource

An XpoTypeInfoSource object that is a source of XPO-related information on business classes.

createUnitOfWorkDelegate DevExpress.ExpressApp.Xpo.CreateUnitOfWorkHandler

A CreateUnitOfWorkHandler object that is a delegate that encapsulates a method for creating a UnitOfWork for the Object Space's XPObjectSpace.Session.

Parameters

Name Type Description
typesInfo ITypesInfo

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

xpoTypeInfoSource DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource

An XpoTypeInfoSource object that is a source of XPO-related information on business classes.

createUnitOfWorkDelegate DevExpress.ExpressApp.Xpo.CreateUnitOfWorkHandler

A CreateUnitOfWorkHandler object that is a delegate that encapsulates a method for creating a UnitOfWork for the Object Space's XPObjectSpace.Session.

Parameters

Name Type Description
typesInfo ITypesInfo

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

xpoTypeInfoSource DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource

An XpoTypeInfoSource object that is a source of XPO-related information on business classes.

createUnitOfWorkDelegate DevExpress.ExpressApp.Xpo.CreateUnitOfWorkHandler

A CreateUnitOfWorkHandler object that is a delegate that encapsulates a method for creating a UnitOfWork for the Object Space's XPObjectSpace.Session.

Remarks

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