Interface ICustomPropertyProvider
Sets the custom properties on an entity
Namespace: Cmc.Nexus.Common
Assembly: Cmc.Nexus.Common.Contracts.dll
Syntax
public interface ICustomPropertyProvider
Methods
GetCustomProperties(Type, Int32, IDictionary<String, String>, IDictionary<String, ICollection<String>>)
Gets the custom properties.
Declaration
void GetCustomProperties(Type entityType, int id, IDictionary<string, string> customProperties, IDictionary<string, ICollection<string>> multiValueCustomProperties)
Parameters
Type | Name | Description |
---|---|---|
System.Type | entityType | Type of the entity. |
System.Int32 | id | The entity Id. |
System.Collections.Generic.IDictionary<System.String, System.String> | customProperties | The custom properties dictionary. |
System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.ICollection<System.String>> | multiValueCustomProperties | The multi-value custom properties dictionary. |
SaveCustomProperties(Type, Int32, IDictionary<String, String>, IDictionary<String, String>, IDictionary<String, ICollection<String>>, IDictionary<String, ICollection<String>>)
Saves the custom properties.
Declaration
void SaveCustomProperties(Type entityType, int id, IDictionary<string, string> customProperties, IDictionary<string, string> originalPropertyValues, IDictionary<string, ICollection<string>> multiValueCustomProperties, IDictionary<string, ICollection<string>> originalMultiValueCustomProperties)
Parameters
Type | Name | Description |
---|---|---|
System.Type | entityType | Type of the entity. |
System.Int32 | id | The identifier. |
System.Collections.Generic.IDictionary<System.String, System.String> | customProperties | The custom properties. |
System.Collections.Generic.IDictionary<System.String, System.String> | originalPropertyValues | The original property values. |
System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.ICollection<System.String>> | multiValueCustomProperties | The multi-value custom properties. |
System.Collections.Generic.IDictionary<System.String, System.Collections.Generic.ICollection<System.String>> | originalMultiValueCustomProperties | The original multi-value property values. |