Class CustomObjectHelper
Inheritance
CustomObjectHelper
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public static class CustomObjectHelper
Methods
ConvertFromLegacyColumnName(string)
Converts legacy column name to new format supporting multi-level relations.
Declaration
public static string ConvertFromLegacyColumnName(string columnName)
Parameters
| Type |
Name |
Description |
| string |
columnName |
Column name to convert
|
Returns
| Type |
Description |
| string |
Converted column name. If the given column name is not legacy or something goes wrong, returns the original input.
|
ForwardOrReverseJoin(ArchiveSelect, TableInfo, TableInfo, SoField)
Declaration
public static void ForwardOrReverseJoin(ArchiveSelect select, TableInfo tableToExtend, TableInfo targetTable, SoField relationField)
Parameters
MapSoTableToEntityType(SoTable)
Declaration
public static string MapSoTableToEntityType(SoTable relationTable)
Parameters
| Type |
Name |
Description |
| SoTable |
relationTable |
|
Returns
ResolveDisplayFieldNameAsync(SoField, CancellationToken)
Declaration
public static Task<string> ResolveDisplayFieldNameAsync(SoField field, CancellationToken cancellationToken = default)
Parameters
Returns
ResolveIcon(string)
Declaration
public static string ResolveIcon(string tableName)
Parameters
| Type |
Name |
Description |
| string |
tableName |
|
Returns
ResolveProviderName(SoField)
Declaration
public static string ResolveProviderName(SoField field)
Parameters
| Type |
Name |
Description |
| SoField |
field |
|
Returns
ResolveRelationField(SoField)
Declaration
public static string ResolveRelationField(SoField f)
Parameters
Returns
ShouldHideIdField(string)
Declaration
public static (bool hideRestriction, bool hideDisplay) ShouldHideIdField(string customObject)
Parameters
| Type |
Name |
Description |
| string |
customObject |
|
Returns