Class EntityCustomFieldsHelper
Forward extra fields to extra fields helper, udef to udef helper (if any), if the underlying helpers do not have any changes at the start of modifications.
Inheritance
System.Object
EntityCustomFieldsHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public class EntityCustomFieldsHelper
Constructors
EntityCustomFieldsHelper(TableRowBase, EntityExtraFieldsHelper, EntityUdefHelper)
Declaration
public EntityCustomFieldsHelper(TableRowBase row, EntityExtraFieldsHelper extraHelper, EntityUdefHelper udefHelper = null)
Parameters
Type | Name | Description |
---|---|---|
TableRowBase | row | |
EntityExtraFieldsHelper | extraHelper | |
EntityUdefHelper | udefHelper |
Fields
_extraHelper
Declaration
protected EntityExtraFieldsHelper _extraHelper
Field Value
Type | Description |
---|---|
EntityExtraFieldsHelper |
_row
Declaration
protected TableRowBase _row
Field Value
Type | Description |
---|---|
TableRowBase |
_udefHelper
Declaration
protected EntityUdefHelper _udefHelper
Field Value
Type | Description |
---|---|
EntityUdefHelper |
Properties
Item[String]
Declaration
public object this[string fieldName] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName |
Property Value
Type | Description |
---|---|
System.Object |
Names
List of extra + udef field names and progids: ['x_foo', 'Superoffice:1']
Declaration
public string[] Names { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Methods
Encode(String)
Convert field value to a string encoded value: 123 -> "[I:123]"
Declaration
public string Encode(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName |
Returns
Type | Description |
---|---|
System.String |
GetExtraInfo(String)
Declaration
public (string, string) GetExtraInfo(string fieldname)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldname |
Returns
Type | Description |
---|---|
System.ValueTuple<System.String, System.String> |
Parse(StringDictionary, String)
Update field value. Convert string encoded value back into object. Check for xxx:org value, and update only if xxx:org is different, or missing.
Declaration
public void Parse(StringDictionary values, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
StringDictionary | values | |
System.String | fieldName |
Extension Methods
EnumUtil.MapEnums<From, To>(From)