Gets the IUnitOfWork with which the entity is associated, if any.

Namespace:  Mindscape.LightSpeed
Assembly:  Mindscape.LightSpeed (in Mindscape.LightSpeed.dll)
Version: (


protected internal IUnitOfWork UnitOfWork { get; internal set; }
Visual Basic (Declaration)
Protected Friend Property UnitOfWork As IUnitOfWork


Applications should not normally have to obtain the unit of work from an entity. Consider using the Repository pattern instead (implemented using IRepository or RepositoryBase<(Of <(TUnitOfWork>)>) and UnitOfWorkScopeBase<(Of <(TUnitOfWork>)>)).

See Also