Sitecore 5.0 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

A database is a collection of items. A database uses a data source object to retrieve and store items. The data source is an concrete implementation that manages items in a storage, e.g. a SQL database or the file system.

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

See Also

Context Class | Sitecore Namespace