Class ResourceMapperExtension
Provides extension methods for mapping resource entities.
Inherited Members
Namespace: DataWeb.Mappers
Assembly: DataWeb.Core.dll
Syntax
public static class ResourceMapperExtension
Methods
ToReferenceResource(Resource, List<string>)
Converts a Resource to a ReferenceResource instance.
Declaration
public static ReferenceResource ToReferenceResource(this Resource resource, List<string> cultures)
Parameters
Type | Name | Description |
---|---|---|
Resource | resource | The Resource to convert. |
List<string> | cultures | A list of cultures in which the resource is available. |
Returns
Type | Description |
---|---|
ReferenceResource | An instance of ReferenceResource representing the resource. |