Class DataExtensions
Extension methods for data-related operations.
[PublicApi]
public static class DataExtensions
- Inheritance
-
objectDataExtensions
Remarks
Introduced in v21.
To use this, make sure you have using ToSic.Eav.Data; in your file.
Methods
IsBoolean(IContentTypeAttribute)
Detect if the attribute is of Boolean type.
public static bool IsBoolean(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsCustom(IContentTypeAttribute)
Detect if the attribute is of Custom type. This is mainly used for GPS coordinates.
public static bool IsCustom(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsDateTime(IContentTypeAttribute)
Detect if the attribute is of DateTime type.
public static bool IsDateTime(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsEmpty(IContentTypeAttribute)
Detect if the attribute is of Empty type. This means it won't store any data and is mainly used for grouping or messages.
public static bool IsEmpty(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsEntity(IContentTypeAttribute)
Detect if the attribute is of Entity type.
public static bool IsEntity(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsGroupEnd(IContentTypeAttribute)
Empty fields can mark the end of a group.
public static bool IsGroupEnd(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsGroupTitle(IContentTypeAttribute)
Empty fields can be group titles.
public static bool IsGroupTitle(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsHyperlink(IContentTypeAttribute)
Detect if the attribute is of Hyperlink type.
public static bool IsHyperlink(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsMessage(IContentTypeAttribute)
Empty fields can be used as messages.
public static bool IsMessage(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsNumber(IContentTypeAttribute)
Detect if the attribute is of Number type.
public static bool IsNumber(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute
Returns
IsString(IContentTypeAttribute)
Detect if the attribute is of String type.
public static bool IsString(this IContentTypeAttribute attribute)
Parameters
attributeIContentTypeAttribute