C# Class Raven.Client.AdvancedSessionExtensions

ファイルを表示 Open project: ravendb/ravendb.contrib

Public Methods

Method Description
AddCascadeDeleteReference ( this session, object entity ) : void

Adds one or more document keys to an entity's cascade delete metadata. Requires the cascade delete bundle on the server.

GetDatabaseCommands ( this session ) : IDatabaseCommands

Provides access to DatabaseCommands for the same database that the session was opened for.

GetDatabaseName ( this session ) : string

Gets the database name that the session was opened for.

Method Details

AddCascadeDeleteReference() public static method

Adds one or more document keys to an entity's cascade delete metadata. Requires the cascade delete bundle on the server.
public static AddCascadeDeleteReference ( this session, object entity ) : void
session this The Raven advanced session.
entity object The entity to update.
return void

GetDatabaseCommands() public static method

Provides access to DatabaseCommands for the same database that the session was opened for.
public static GetDatabaseCommands ( this session ) : IDatabaseCommands
session this The Raven advanced session.
return IDatabaseCommands

GetDatabaseName() public static method

Gets the database name that the session was opened for.
public static GetDatabaseName ( this session ) : string
session this The Raven advanced session.
return string