Maps IDataReader to specific contextual data related to processing that IDataReader.

Namespace: NHibernate.Engine.Loading
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public class LoadContexts
Visual Basic
Public Class LoadContexts
Visual C++
public ref class LoadContexts

Remarks

Implementation note: internally an IdentityMap is used to maintain the mappings; IdentityMap was chosen because I'd rather not be dependent upon potentially bad IDataReader and IDataReader implementations. Considering the JDBC-redesign work, would further like this contextual info not mapped separately, but available based on the result set being processed. This would also allow maintaining a single mapping as we could reliably get notification of the result-set closing...

Inheritance Hierarchy

System..::..Object
  NHibernate.Engine.Loading..::..LoadContexts

See Also