Table of Contents

Class PredefinedComputedColumnNameHelper

Namespace
GroupeIsa.Neos.Shared.Persistence
Assembly
GroupeIsa.Neos.Shared.dll

Provides the naming convention for predefined computed columns.

public static class PredefinedComputedColumnNameHelper
Inheritance
PredefinedComputedColumnNameHelper
Inherited Members

Methods

GetColumnName(string, string?, bool)

Gets the computed column name from its source settings.

public static string GetColumnName(string sourceColumnName, string? sourceColumnLanguage, bool normalizedForSearch)

Parameters

sourceColumnName string

The source column name.

sourceColumnLanguage string

The source column language.

normalizedForSearch bool

A value indicating whether search normalization is enabled.

Returns

string

The computed column name.

IsBasedOnSourceColumn(string?, string)

Indicates whether the specified computed column name can be derived from the specified source column.

public static bool IsBasedOnSourceColumn(string? columnName, string sourceColumnName)

Parameters

columnName string

The computed column name.

sourceColumnName string

The source column name.

Returns

bool

true if the column name follows the predefined naming convention for the source column; otherwise, false.

Matches(string?, string, string?, bool)

Indicates whether the specified computed column name matches the source settings.

public static bool Matches(string? columnName, string sourceColumnName, string? sourceColumnLanguage, bool normalizedForSearch)

Parameters

columnName string

The computed column name.

sourceColumnName string

The source column name.

sourceColumnLanguage string

The source column language.

normalizedForSearch bool

A value indicating whether search normalization is enabled.

Returns

bool

true if the name matches the convention; otherwise, false.