Class PropertyDefinitionTypeRepository
Repository for the Property
Inheritance
Namespace: EPiServer.DataAbstraction.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
[ServiceConfiguration(ServiceType = null)]
public class PropertyDefinitionTypeRepository : Object, IPropertyDefinitionTypeRepository, ICachedRepository
Constructors
PropertyDefinitionTypeRepository(ServiceAccessor<PropertyDefinitionTypeDB>, LocalizationService, ISynchronizedObjectInstanceCache, DefaultPropertyDefinitionTypeEvents)
Initializes a new instance of the Property
Declaration
public PropertyDefinitionTypeRepository(ServiceAccessor<PropertyDefinitionTypeDB> dataAccess, LocalizationService localizationService, ISynchronizedObjectInstanceCache cacheInstance, DefaultPropertyDefinitionTypeEvents propertyDefinitionTypeEvents)
Parameters
Type | Name | Description |
---|---|---|
Service |
dataAccess | |
Localization |
localizationService | |
ISynchronized |
cacheInstance | |
Default |
propertyDefinitionTypeEvents |
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(PropertyDefinitionTypeEventArgs)
Raises the Deleted event.
Declaration
protected virtual void OnPropertyDefinitionTypeDeleted(PropertyDefinitionTypeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Property |
args | The Property |
OnPropertyDefinitionTypeSaved(PropertyDefinitionTypeEventArgs)
Raises the Saved event.
Declaration
protected virtual void OnPropertyDefinitionTypeSaved(PropertyDefinitionTypeEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
Property |
args | The Property |
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. |
Explicit Interface Implementations
ICachedRepository.ClearCache()
Clear all items from the cache.
Declaration
void ICachedRepository.ClearCache()