Skip to main content
.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.
UnitOfWork(IServiceProvider, IDataLayer, IDisposable[]) serviceProvider, layer, disposeOnDisconnect Initializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(IServiceProvider, IObjectLayer, IDisposable[]) serviceProvider, layer, disposeOnDisconnect Initializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(IServiceProvider, XPDictionary) serviceProvider, dictionary Initializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(IServiceProvider, IContainer) serviceProvider, container Initializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(IServiceProvider) serviceProvider Initializes a new instance of the UnitOfWork class with specified settings.
See Also