C# Class Nxdb.Updates

Instances of this class should be placed around combined update operations. It's primary purpose is to prevent intermediate and premature database optimization which will greatly impact performance. Instances of this class may be nested. If an update operation (either directly or through a query) is applied while one or more instances of this class are active, database optimizations and reindexing will not be performed until the final instance of this class is disposed. Note that instances of this class do not affect the actual application of updates operations which are still applied immediatly regardless.
Inheritance: IDisposable
Mostra file Open project: daveaglick/Nxdb Class Usage Examples

Private Properties

Property Type Description
Apply void
Cleanup void
Do void
Do void
Forget void
GetQueryContext QueryContext

Public Methods

Method Description
Dispose ( ) : void
Updates ( ) : System

Initializes a new instance of the Updates class.

Private Methods

Method Description
Apply ( ) : void
Cleanup ( IEnumerable databases ) : void
Do ( Expr expr ) : void
Do ( UpdatePrimitive update ) : void
Forget ( ) : void

Forgets all uncommitted updates. Used from the Query class when updates are not allowed (directly added updates are always immediatly applied, so it is impossible to forget them).

GetQueryContext ( ) : QueryContext

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Updates() public method

Initializes a new instance of the Updates class.
public Updates ( ) : System
return System