Interface IAreaRepository
- Namespace
- Dynamicweb.Content.Data
- Assembly
- Dynamicweb.dll
The IAreaRepository defines persistence operation for the Area Aggregate
[Obsolete("Use AreaRepository instead.")]
public interface IAreaRepository
Methods
Delete(int)
Deletes the area with the specified id
void Delete(int id)
Parameters
id
int- The id of the area to delete
GetArea(int)
Gets the area with the specified id
Area GetArea(int id)
Parameters
id
int- The id of the area to get
Returns
- Area
- The area with the specified id if it exists, otherwise Nothing
GetAreas()
Gets all areas
IList<Area> GetAreas()
Returns
GetAreas(IEnumerable<int>)
Gets areas by IDs.
IDictionary<int, Area> GetAreas(IEnumerable<int> ids)
Parameters
ids
IEnumerable<int>- The area IDs.
Returns
- IDictionary<int, Area>
- Found paragraphs.
GetNextSortValue(int)
Get the next available sort value for an area associated with the specified master area
int GetNextSortValue(int masterAreaId)
Parameters
masterAreaId
int- The id of the master area
Returns
- int
- An integer representing the next available sort value
RestoreArea(Area)
Re-inserts the specified area
Area RestoreArea(Area area)
Parameters
area
Area- The area to reinsert into persistence
Returns
- Area
- The newly inserted area
Save(Area)
Saves the specified area
Area Save(Area area)
Parameters
area
Area- The area to save
Returns
- Area
- The newly saved area