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

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

Syntax

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

Remarks

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