Click or drag to resize

IUserSession Methods


The IUserSession type exposes the following members.

Methods
  NameDescription
Public methodCountT Obsolete.
Gets the count of query results
Public methodDebug
Log a message at the Debug level
(Inherited from IInstanceLogger.)
Public methodError
Log a message at the Error level
(Inherited from IInstanceLogger.)
Public methodExists
Checks whether an object with given unique ids exists or not
Public methodGetT
Retrieves an Entity object from the Content Store by its unique ID
Public methodGetDocumentsRawT
Retrieves from the content store by unique ID a collection of documents.
Public methodGetEntitiesT, TManager
Public methodGetEntityT, TManager
Public methodGetManagerT
Retrieves a transactional manager that can be used to manipulate entities in the session.
Public methodInfo
Log a message at the Info level
(Inherited from IInstanceLogger.)
Public methodListT
Creates a RavenDB IRavenQueryable instance of the specified collection type
Public methodLog
Log a message at the specified log level
(Inherited from IInstanceLogger.)
Public methodCode exampleLuceneQueryAllT, 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 methodLuceneQueryCountT, TIndex
Queries the content store using Lucene query syntax and returns the count of results.
Public methodQueryT, 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 methodStreamQueryAllT, TIndex
Public methodWarn
Log a message at the Warn level
(Inherited from IInstanceLogger.)
Top
See Also