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
EntityCustomFieldsHelper
Assembly: SoDataBase.dll
Syntax
public class EntityCustomFieldsHelper
Constructors
Declaration
public EntityCustomFieldsHelper(TableRowBase row, EntityExtraFieldsHelper extraHelper, EntityUdefHelper udefHelper = null)
Parameters
Fields
Declaration
protected EntityExtraFieldsHelper _extraHelper
Field Value
_row
Declaration
protected TableRowBase _row
Field Value
_udefHelper
Declaration
protected EntityUdefHelper _udefHelper
Field Value
Properties
Item[String]
Declaration
public object this[string fieldName] { get; set; }
Parameters
Type |
Name |
Description |
String |
fieldName |
|
Property Value
Names
List of extra + udef field names and progids: ['x_foo', 'Superoffice:1']
Declaration
public string[] Names { get; }
Property Value
Methods
Encode(String)
Convert field value to a string encoded value: 123 -> "[I:123]"
Declaration
public string Encode(string fieldName)
Parameters
Type |
Name |
Description |
String |
fieldName |
|
Returns
Declaration
public (string, string) GetExtraInfo(string fieldname)
Parameters
Type |
Name |
Description |
String |
fieldname |
|
Returns
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
Extension Methods
EnumUtil.MapEnums<From, To>(From)