Interface IPropertyDefinitionTypeRepository
Defines methods for interacting with a data repository where PropertyDefinitionTypes are persisted.
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 9.12.2Syntax
public interface IPropertyDefinitionTypeRepository
Methods
Delete(PropertyDefinitionType)
Deletes the suppied PropertyDefinitionType from the data repository.
Declaration
void Delete(PropertyDefinitionType propertyDefinitionType)
Parameters
Type | Name | Description |
---|---|---|
PropertyDefinitionType | propertyDefinitionType | The PropertyDefinitionType to delete. |
Delete(Int32)
Deletes the PropertyDefinitionType with the supplied id from the data repository.
Declaration
void Delete(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The PropertyDefinitionType id. |
List()
Lists all PropertyDefinitionTypes in the data repository.
Declaration
IEnumerable<PropertyDefinitionType> List()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PropertyDefinitionType> | Enumeration of PropertyDefinitionTypes. |
Load(Int32)
Loads a PropertyDefinitionType with the specified id from the data repository.
Declaration
PropertyDefinitionType Load(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The PropertyDefinitionType id. |
Returns
Type | Description |
---|---|
PropertyDefinitionType | The PropertyDefinitionType that matches the given id or null if no match could be found. |
Load(String, String)
Loads a PropertyDefinitionType with the specified System.Guid from the data repository.
Declaration
PropertyDefinitionType Load(string typeName, string assemblyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | |
System.String | assemblyName |
Returns
Type | Description |
---|---|
PropertyDefinitionType | The PropertyDefinitionType that matches the given type and assembly or null if no match could be found. |
Load(Type)
Loads a PropertyDefinitionType with the underlying System.Type from the data repository.
Declaration
PropertyDefinitionType Load(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The underlying System.Type of the PropertyDefinitionType. |
Returns
Type | Description |
---|---|
PropertyDefinitionType | The PropertyDefinitionType that matches the given System.Type or null if no match could be found. |
LoadByBlockType(Guid)
Loads a BlockPropertyDefinitionType that corresponds to the BlockType with given id from the data repository.
Declaration
BlockPropertyDefinitionType LoadByBlockType(Guid blockTypeId)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | blockTypeId | The block type id. |
Returns
Type | Description |
---|---|
BlockPropertyDefinitionType | The BlockPropertyDefinitionType that matches the given |
LoadByBlockType(Type)
Loads a BlockPropertyDefinitionType that corresponds to the BlockType with given model type from the data repository.
Declaration
BlockPropertyDefinitionType LoadByBlockType(Type blockTypeModel)
Parameters
Type | Name | Description |
---|---|---|
System.Type | blockTypeModel | The block type model. |
Returns
Type | Description |
---|---|
BlockPropertyDefinitionType | The BlockPropertyDefinitionType that matches the given |
Save(PropertyDefinitionType)
Saves the specified PropertyDefinitionType to the data repository.
Declaration
void Save(PropertyDefinitionType propertyDefinitionType)
Parameters
Type | Name | Description |
---|---|---|
PropertyDefinitionType | propertyDefinitionType | The PropertyDefinitionType to save. |