Click or drag to resize

IUserWriteSession Methods


The IUserWriteSession type exposes the following members.

Methods
  NameDescription
Public methodAddT
Adds a new object to the content store. Objects are saved to the content store upon session closure.
Public methodCancelSaving
Prevents session from saving any changes.
Public methodCommit
Manually saves changes to the content store.
Public methodCountT Obsolete.
Gets the count of query results
(Inherited from IUserSession.)
Public methodDebug
Log a message at the Debug level
(Inherited from IInstanceLogger.)
Public methodDeleteT
Deletes an existing object from the content store. Deletion occurs upon session closure.
Public methodDeleteByIds
Deletes existing objects by their object IDs. Deletion occurs upon session closure.
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
(Inherited from IUserSession.)
Public methodGetT
Retrieves an Entity object from the Content Store by its unique ID
(Inherited from IUserSession.)
Public methodGetDocumentsRawT
Retrieves from the content store by unique ID a collection of documents.
(Inherited from IUserSession.)
Public methodGetEntitiesT, TManager (Inherited from IUserSession.)
Public methodGetEntityT, TManager (Inherited from IUserSession.)
Public methodGetManagerT
Retrieves a transactional manager that can be used to manipulate entities in the session.
(Inherited from IUserSession.)
Public methodIgnoreT
Ignore any changed to a loaded object. This will allow the object to still use its session but not commit any changes.
Public methodInfo
Log a message at the Info level
(Inherited from IInstanceLogger.)
Public methodListT
Creates a RavenDB IRavenQueryable instance of the specified collection type
(Inherited from IUserSession.)
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.

(Inherited from IUserSession.)
Public methodLuceneQueryCountT, TIndex
Queries the content store using Lucene query syntax and returns the count of results.
(Inherited from IUserSession.)
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.

(Inherited from IUserSession.)
Public methodStreamQueryAllT, TIndex (Inherited from IUserSession.)
Public methodWarn
Log a message at the Warn level
(Inherited from IInstanceLogger.)
Top
See Also