UnitOfWork(IServiceProvider, XPDictionary) Constructor
In This Article
Initializes a new instance of the UnitOfWork class with specified settings.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public UnitOfWork(
IServiceProvider serviceProvider,
XPDictionary dictionary
)
#Parameters
Name | Type | Description |
---|---|---|
service |
IService |
An object that implements the IService |
dictionary | XPDictionary | An XPDictionary object, which is the metadata provider to be used by the newly instantiated session. This value is assigned to the Session. |
See Also