UnitOfWork(IServiceProvider, IObjectLayer, IDisposable[]) 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,
IObjectLayer layer,
params IDisposable[] disposeOnDisconnect
)
#Parameters
Name | Type | Description |
---|---|---|
service |
IService |
An object that implements the IService |
layer | IObject |
An object which implements the IObject |
dispose |
IDisposable[] | An array of objects that implement the IDisposable interface. These objects are automatically disposed of when the unit of work is disconnected. |
See Also