Clears UnitOfWork.

Namespace: MonoSoftware.LLBLGen
Assembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static void Clear(
	this UnitOfWork2 unitOfWork
)
Visual Basic
<ExtensionAttribute> 
Public Shared Sub Clear ( 
	unitOfWork As UnitOfWork2
)
Visual C++
public:
[ExtensionAttribute]
static void Clear(
	UnitOfWork2^ unitOfWork
)
F#
static member Clear : 
        unitOfWork : UnitOfWork2 -> unit 

Parameters

unitOfWork
Type: UnitOfWork2

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnitOfWork2. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

This is ok, UnitOfWork's private _entitiesToInsert and _entitiesToUpdate are not cleared on reset, but when the ProcessQueue is constructed this is corrected.

See Also