Class StorageManager
- Namespace
- Dynamicweb.Content.Items.Queries
- Assembly
- Dynamicweb.dll
Represents a storage manager. This class cannot be inherited.
- Inheritance
-
Storage
Manager
- Inherited Members
Properties
Current
Gets the current instance of the storage manager.
Property Value
Methods
GetById(string, string)
Selects the item by its Id.
Parameters
Returns
- Item
Item with the given Id.
Remarks
Item is cached for 15 minutes
GetById(string, string, bool, DateTime)
Selects the item by its Id.
Parameters
systemName
stringItem system name.
id
stringItem Id.
draft
boolIs item in a draft mode
previewDate
DateTime Date to preview the content from
Returns
- Item
Item with the given Id.
GetById<T>(string)
Selects the item by its Id.
Parameters
id
stringItem Id.
Returns
- T
Item with the given Id.
Type Parameters
T
Item type.
Remarks
Uses the db to find the item
GetByIds(ItemType, IEnumerable<string>)
Get items by their Ids.
Parameters
itemType
ItemType Item type.
ids
IEnumerable<string>Item Ids.
Returns
- IEnumerable<Item>
Items with the given Ids.
GetByIds(string, IEnumerable<string>)
Get items by their Ids.
Parameters
systemName
stringItem system name.
ids
IEnumerable<string>Item Ids.
Returns
- IEnumerable<Item>
Items with the given Ids.
Open(ItemType)
Opens new repository.
Parameters
metadata
ItemType Item metadata.
Returns
- Repository
Repository.
Exceptions
- Argument
Null Exception metadata
is null.
Open(ItemType, bool)
Parameters
Returns
Open(string)
Opens new repository.
Parameters
systemName
stringItem system name.
Returns
- Repository
Repository.
Open<T>()
Opens new repository.
Returns
- Repository
Repository.
Type Parameters
T
Item type.