Sitecore 5.1.1 API

Context.Database Property

Gets the current database.

[Visual Basic]
Public Shared ReadOnly Property Database As Database
[C#]
public static Data.Database Database {get;}

Remarks

This property returns the current database. For websites this is usually the Web database. In the client, this is the Core database.

The property is resolved in the HttpRequest pipeline and is obtained from the Sites section in the web.config.

See Also

Context Class | Sitecore Namespace