Class DataTypeConfigurationConnectorExtensions
Extension methods adding backwards-compatability between IData
Inheritance
Namespace: Umbraco.Cms.Core.Deploy
Assembly: Umbraco.Core.dll
Syntax
public static class DataTypeConfigurationConnectorExtensions
Remarks
These extension methods will be removed in Umbraco 13.
Methods
View SourceFromArtifact(IDataTypeConfigurationConnector, IDataType, String, IContextCache)
Gets the data type configuration corresponding to an artifact configuration value.
Declaration
public static object FromArtifact(this IDataTypeConfigurationConnector connector, IDataType dataType, string configuration, IContextCache contextCache)
Parameters
Type | Name | Description |
---|---|---|
IData |
connector | The connector. |
IData |
dataType | The data type. |
System. |
configuration | The artifact configuration value. |
IContext |
contextCache | The context cache. |
Returns
Type | Description |
---|---|
System. |
The data type configuration. |
Remarks
This extension method tries to make use of the IContext
ToArtifact(IDataTypeConfigurationConnector, IDataType, ICollection<ArtifactDependency>, IContextCache)
Gets the artifact configuration value corresponding to a data type configuration and gather dependencies.
Declaration
public static string ToArtifact(this IDataTypeConfigurationConnector connector, IDataType dataType, ICollection<ArtifactDependency> dependencies, IContextCache contextCache)
Parameters
Type | Name | Description |
---|---|---|
IData |
connector | The connector. |
IData |
dataType | The data type. |
ICollection<Artifact |
dependencies | The dependencies. |
IContext |
contextCache | The context cache. |
Returns
Type | Description |
---|---|
System. |
The artifact configuration value. |
Remarks
This extension method tries to make use of the IContext