.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

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. See Unit of Work.
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