Show / Hide Table of Contents

Class CustomObjectHelper

Inheritance
object
CustomObjectHelper
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.CustomObject
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
Type Name Description
ArchiveSelect select
TableInfo tableToExtend
TableInfo targetTable
SoField relationField

MapSoTableToEntityType(SoTable)

Declaration
public static string MapSoTableToEntityType(SoTable relationTable)
Parameters
Type Name Description
SoTable relationTable
Returns
Type Description
string

ResolveDisplayFieldNameAsync(SoField, CancellationToken)

Declaration
public static Task<string> ResolveDisplayFieldNameAsync(SoField field, CancellationToken cancellationToken = default)
Parameters
Type Name Description
SoField field
CancellationToken cancellationToken
Returns
Type Description
Task<string>

ResolveIcon(string)

Declaration
public static string ResolveIcon(string tableName)
Parameters
Type Name Description
string tableName
Returns
Type Description
string

ResolveProviderName(SoField)

Declaration
public static string ResolveProviderName(SoField field)
Parameters
Type Name Description
SoField field
Returns
Type Description
string

ResolveRelationField(SoField)

Declaration
public static string ResolveRelationField(SoField f)
Parameters
Type Name Description
SoField f
Returns
Type Description
string

ShouldHideIdField(string)

Declaration
public static (bool hideRestriction, bool hideDisplay) ShouldHideIdField(string customObject)
Parameters
Type Name Description
string customObject
Returns
Type Description
(bool hideRestriction, bool hideDisplay)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top