Defines the basic functionlity of item collections in a database.
For a list of all members of this type, see Database.DataRecords Members.
System.Object
Sitecore.Data.Database.DataRecords
Derived types
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
Examples of item collections are Templates are Masters.
This example creates a new item.
public Item AddItem(Item parent, string name) {
Item result = null;
TemplateItem template = Sitecore.Context.Database.Templates["Document"];
if (template != null) {
result = parent.Add(name, template);
}
return result;
}
Namespace: Sitecore.Data
Assembly: Sitecore.Kernel (in Sitecore.Kernel.dll)
Database.DataRecords Members | Sitecore.Data Namespace