Class StructureMapperExtension
Provides extension methods for mapping structure entities.
Inherited Members
Namespace: DataWeb.Mappers
Assembly: DataWeb.Core.dll
Syntax
public static class StructureMapperExtension
Methods
ToAreaInfo(Area)
Declaration
public static AreaInfo ToAreaInfo(this Area area)
Parameters
Type | Name | Description |
---|---|---|
Area | area | The Area to convert. |
Returns
Type | Description |
---|---|
AreaInfo | An instance of AreaInfo representing the area. |
ToContextActionInfo(ContextAction)
Converts a ContextAction to a ContextActionInfo instance.
Declaration
public static ContextActionInfo ToContextActionInfo(this ContextAction action)
Parameters
Type | Name | Description |
---|---|---|
ContextAction | action | The ContextAction to convert. |
Returns
Type | Description |
---|---|
ContextActionInfo | An instance of ContextActionInfo representing the view. |
ToElementInfo(Element)
Converts an Element to an ElementInfo instance.
Declaration
public static ElementInfo ToElementInfo(this Element element)
Parameters
Type | Name | Description |
---|---|---|
Element | element | The Element to convert. |
Returns
Type | Description |
---|---|
ElementInfo | An instance of ElementInfo representing the element. |
ToSectionInfo(Section)
Converts a Section to a SectionInfo instance.
Declaration
public static SectionInfo ToSectionInfo(this Section section)
Parameters
Type | Name | Description |
---|---|---|
Section | section | The SectionInfo to convert. |
Returns
Type | Description |
---|---|
SectionInfo | An instance of SectionInfo representing the section. |
ToViewInfo(View)
Declaration
public static ViewInfo ToViewInfo(this View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | The View to convert. |
Returns
Type | Description |
---|---|
ViewInfo | An instance of ViewInfo representing the view. |