Back to Devexpress

UnitOfWork Constructors

xpo-devexpress-dot-xpo-dot-unitofwork-dot-ctor.md

latest3.0 KB
Original Source

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.

NameParametersDescription
UnitOfWork()noneInitializes a new instance of the UnitOfWork class with default settings.
UnitOfWork(IDataLayer, IDisposable[])layer, disposeOnDisconnectInitializes a new instance of the UnitOfWork class with the specified settings.
UnitOfWork(IObjectLayer, IDisposable[])layer, disposeOnDisconnectInitializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(XPDictionary)dictionaryInitializes a new instance of the UnitOfWork class with the specified dictionary.
UnitOfWork(IContainer)containerInitializes a new instance of the UnitOfWork class and adds it to a form’s container.
UnitOfWork(IServiceProvider, IDataLayer, IDisposable[])serviceProvider, layer, disposeOnDisconnectInitializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(IServiceProvider, IObjectLayer, IDisposable[])serviceProvider, layer, disposeOnDisconnectInitializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(IServiceProvider, XPDictionary)serviceProvider, dictionaryInitializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(IServiceProvider, IContainer)serviceProvider, containerInitializes a new instance of the UnitOfWork class with specified settings.
UnitOfWork(IServiceProvider)serviceProviderInitializes a new instance of the UnitOfWork class with specified settings.

See Also

UnitOfWork Class

UnitOfWork Members

DevExpress.Xpo Namespace