UnitOfWork(IDataLayer, IDisposable[]) Constructor
In This Article
Initializes a new instance of the UnitOfWork class with the specified settings.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public UnitOfWork(
IDataLayer layer,
params IDisposable[] disposeOnDisconnect
)
#Parameters
Name | Type | Description |
---|---|---|
layer | IData |
An object which implements the IData |
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