Class PropertyDefinitionTypeRepository
Repository for the Property
Inheritance
Implements
Inherited Members
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ServiceConfiguration(ServiceType = typeof(IPropertyDefinitionTypeRepository))]
public class PropertyDefinitionTypeRepository : IPropertyDefinitionTypeRepository
Constructors
PropertyDefinitionTypeRepository(ServiceAccessor<PropertyDefinitionTypeDB>, LocalizationService)
Initializes a new instance of the Property
Declaration
public PropertyDefinitionTypeRepository(ServiceAccessor<PropertyDefinitionTypeDB> dataAccess, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
Service |
dataAccess | The data access accessor that should be used by the current instance. |
Localization |
localizationService | The localization service that should be used by the current instance. |
Methods
ClearCache()
Clear all items from the cache.
Declaration
public static void ClearCache()
Delete(PropertyDefinitionType)
Deletes the suppied Property
Declaration
public virtual void Delete(PropertyDefinitionType propertyDefinitionType)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyDefinitionType | The Property |
Delete(Int32)
Deletes the Property
Declaration
public virtual void Delete(int id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The Property |
List()
Lists all Property
Declaration
public virtual IEnumerable<PropertyDefinitionType> List()
Returns
Type | Description |
---|---|
System. |
Enumeration of Property |
Load(Int32)
Loads a Property
Declaration
public virtual PropertyDefinitionType Load(int id)
Parameters
Type | Name | Description |
---|---|---|
System. |
id | The Property |
Returns
Type | Description |
---|---|
Property |
The Property |
Load(String, String)
Loads a Property
Declaration
public virtual PropertyDefinitionType Load(string typeName, string assemblyName)
Parameters
Type | Name | Description |
---|---|---|
System. |
typeName | |
System. |
assemblyName |
Returns
Type | Description |
---|---|
Property |
The Property |
Load(Type)
Loads a Property
Declaration
public virtual PropertyDefinitionType Load(Type definitionType)
Parameters
Type | Name | Description |
---|---|---|
System. |
definitionType | The underlying System. |
Returns
Type | Description |
---|---|
Property |
The Property |
LoadByBlockType(Guid)
Loads a Block
Declaration
public BlockPropertyDefinitionType LoadByBlockType(Guid blockTypeId)
Parameters
Type | Name | Description |
---|---|---|
System. |
blockTypeId | The block type id. |
Returns
Type | Description |
---|---|
Block |
The Block |
LoadByBlockType(Type)
Loads a Block
Declaration
public BlockPropertyDefinitionType LoadByBlockType(Type blockTypeModel)
Parameters
Type | Name | Description |
---|---|---|
System. |
blockTypeModel | The block type model. |
Returns
Type | Description |
---|---|
Block |
The Block |
OnPropertyDefinitionTypeDeleted(RepositoryEventArgs)
Raises the Property
Declaration
protected virtual void OnPropertyDefinitionTypeDeleted(RepositoryEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Repository |
args | The Repository |
OnPropertyDefinitionTypeSaved(RepositoryEventArgs)
Raises the Property
Declaration
protected virtual void OnPropertyDefinitionTypeSaved(RepositoryEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Repository |
args | The Repository |
OnPropertyDefinitionTypeSaving(CancelPropertyDefinitionTypeEventArgs)
Raises the Property
Declaration
protected virtual void OnPropertyDefinitionTypeSaving(CancelPropertyDefinitionTypeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Cancel |
args | The Cancel |
Save(PropertyDefinitionType)
Saves the specified Property
Declaration
public virtual void Save(PropertyDefinitionType propertyDefinitionType)
Parameters
Type | Name | Description |
---|---|---|
Property |
propertyDefinitionType | The Property |
Events
PropertyDefinitionTypeDeleted
Occurs when a Property
Declaration
public static event EventHandler<RepositoryEventArgs> PropertyDefinitionTypeDeleted
Event Type
Type | Description |
---|---|
System. |
PropertyDefinitionTypeSaved
Occurs when a Property
Declaration
public static event EventHandler<RepositoryEventArgs> PropertyDefinitionTypeSaved
Event Type
Type | Description |
---|---|
System. |
PropertyDefinitionTypeSaving
Occurs when a Property
Declaration
public static event EventHandler<CancelPropertyDefinitionTypeEventArgs> PropertyDefinitionTypeSaving
Event Type
Type | Description |
---|---|
System. |