Click or drag to resize

IUserSession Methods


The IUserSession type exposes the following members.

Methods
  Name Description
Public method CountT Obsolete.
Gets the count of query results
Public method Debug Log a message at the Debug level
(Inherited from IInstanceLogger)
Public method Error Log a message at the Error level
(Inherited from IInstanceLogger)
Public method Exists Checks whether an object with given unique ids exists or not
Public method GetT Retrieves an Entity object from the Content Store by its unique ID
Public method GetDocumentsRawT Retrieves from the content store by unique ID a collection of documents.
Public method GetEntitiesT, TManager Retrieves from the content store by unique ID a collection of entities that implements the IEntityTManager interface.
Public method GetEntityT, TManager Retrieves by unique ID from the content store an entity object that implements the IEntityTManager interface.
Public method GetManagerT Retrieves a transactional manager that can be used to manipulate entities in the session.
Public method Info Log a message at the Info level
(Inherited from IInstanceLogger)
Public method ListT Creates a RavenDB IRavenQueryable instance of the specified collection type
Public method Log Log a message at the specified log level
(Inherited from IInstanceLogger)
Public method Code example LuceneQueryAllT, TIndex

Queries the content store using Lucene query syntax, returning a collection of objects of the given type.

The CSAPI creates indexes in the content store to expedite object lookup. The CSAPI comes with a set of indexes for its basic functionality. All strong-typed queries go through this method. Additional custom indexes can be created to provide further flexibility on fast lookup. Please refer to the Indexing topic for more information on indexes and custom indexes.

Public method LuceneQueryCountT, TIndex Queries the content store using Lucene query syntax and returns the count of results.
Public method QueryT, TIndex

Queries the content store and returns a collection of objects of a given type. The query is based on the type of index provided.

The CSAPI creates indexes in the content store to expedite object lookup. CSAPI comes with a set of indexes for its basic functionality. All strong-typed queries go through this method. Additional custom indexes can be created to provide even further flexibilities on fast lookup. Please refer to the Indexing topic for more information on indexes and custom indexes.

Public method StreamQueryAllT, TIndex

Queries the content store using a LINQ expression, returning a collection of objects of the given type.

The CSAPI creates indexes in the content store to expedite object lookup. The CSAPI comes with a set of indexes for its basic functionality. All strong-typed queries go through this method. Additional custom indexes can be created to provide further flexibility on fast lookup. Please refer to the Indexing topic for more information on indexes and custom indexes.

Public method Warn Log a message at the Warn level
(Inherited from IInstanceLogger)
Top
See Also