Raven.Client.AdvancedSessionExtensions.GetDatabaseName C# (CSharp) Method

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
        public static string GetDatabaseName(this IAdvancedDocumentSessionOperations session)
        {
            return ((DocumentSession)session).DatabaseName;
        }