Table of Contents

Class DataExtensions

Namespace
ToSic.Eav.Data
Assembly
ToSic.Eav.Data.dll

Extension methods for data-related operations.

[PublicApi]
public static class DataExtensions
Inheritance
object
DataExtensions

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

attribute IContentTypeAttribute

Returns

bool

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

attribute IContentTypeAttribute

Returns

bool

IsDateTime(IContentTypeAttribute)

Detect if the attribute is of DateTime type.

public static bool IsDateTime(this IContentTypeAttribute attribute)

Parameters

attribute IContentTypeAttribute

Returns

bool

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

attribute IContentTypeAttribute

Returns

bool

IsEntity(IContentTypeAttribute)

Detect if the attribute is of Entity type.

public static bool IsEntity(this IContentTypeAttribute attribute)

Parameters

attribute IContentTypeAttribute

Returns

bool

IsGroupEnd(IContentTypeAttribute)

Empty fields can mark the end of a group.

public static bool IsGroupEnd(this IContentTypeAttribute attribute)

Parameters

attribute IContentTypeAttribute

Returns

bool

IsGroupTitle(IContentTypeAttribute)

Empty fields can be group titles.

public static bool IsGroupTitle(this IContentTypeAttribute attribute)

Parameters

attribute IContentTypeAttribute

Returns

bool

Detect if the attribute is of Hyperlink type.

public static bool IsHyperlink(this IContentTypeAttribute attribute)

Parameters

attribute IContentTypeAttribute

Returns

bool

IsMessage(IContentTypeAttribute)

Empty fields can be used as messages.

public static bool IsMessage(this IContentTypeAttribute attribute)

Parameters

attribute IContentTypeAttribute

Returns

bool

IsNumber(IContentTypeAttribute)

Detect if the attribute is of Number type.

public static bool IsNumber(this IContentTypeAttribute attribute)

Parameters

attribute IContentTypeAttribute

Returns

bool

IsString(IContentTypeAttribute)

Detect if the attribute is of String type.

public static bool IsString(this IContentTypeAttribute attribute)

Parameters

attribute IContentTypeAttribute

Returns

bool