Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

UnitOfWork Constructors

Maintains a list of persistent objects that are affected by a transaction. Keeps track of every change to every persistent object during a transaction that can affect a data store.
Name Parameters Description
UnitOfWork() none Initializes a new instance of the UnitOfWork class with default settings.
UnitOfWork(IDataLayer, IDisposable[]) layer, disposeOnDisconnect Initializes a new instance of the UnitOfWork class with the specified settings.
UnitOfWork(IObjectLayer, IDisposable[]) layer, disposeOnDisconnect Initializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(XPDictionary) dictionary Initializes a new instance of the UnitOfWork class with the specified dictionary.
UnitOfWork(IContainer) container Initializes a new instance of the UnitOfWork class and adds it to a form’s container.
See Also