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
sourceColumnNamestringThe source column name.
sourceColumnLanguagestringThe source column language.
normalizedForSearchboolA 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
Returns
- bool
trueif 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
columnNamestringThe computed column name.
sourceColumnNamestringThe source column name.
sourceColumnLanguagestringThe source column language.
normalizedForSearchboolA value indicating whether search normalization is enabled.
Returns
- bool
trueif the name matches the convention; otherwise,false.