Forward extra fields to underlying row
Inheritance
EntityExtraFieldsHelper
Assembly: SoDataBase.dll
public class EntityExtraFieldsHelper
Constructors
Declaration
public EntityExtraFieldsHelper(TableRowBase row)
Parameters
Fields
Declaration
protected TableRowBase _row
Field Value
Properties
Allows required field enforcement to be turned off - used for person on user.
Declaration
public bool EnforceRequiredFields { get; set; }
Property Value
Declaration
public object this[string fieldName] { get; set; }
Parameters
Type |
Name |
Description |
String |
fieldName |
|
Property Value
Valid extra field names: ['x_foo', 'x_bar']
Declaration
public string[] Names { get; }
Property Value
Methods
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
Get a for the extra field value.
Declaration
public FieldRight GetFieldRight(string fieldName)
Parameters
Type |
Name |
Description |
String |
fieldName |
name of extra field: 'x_foo'
|
Returns
Type |
Description |
FieldRight |
Permissions on the field.
|
Has the underlying field been changed?
Declaration
public bool IsChanged(string name)
Parameters
Type |
Name |
Description |
String |
name |
Name of extra field
|
Returns
Type |
Description |
Boolean |
True if the field value has been changed
|
Update field value. Convert string encoded value back into object
Declaration
public void Parse(string fieldName, string value)
Parameters
Checks that mandatory extra fields are not NULL.
Stricter mandatory checks are handled by entity/service layer.
Declaration
public void Validate(RowValidator rowValidator)
Parameters
Type |
Name |
Description |
RowValidator |
rowValidator |
Collection of errors to add to
|
Stricter checks that mandatory extra fields are not NULL, 0 or "".
Called by the entity/service classes.
Declaration
public void Validate(Dictionary<string, string> validator)
Parameters
Extension Methods
EnumUtil.MapEnums<From, To>(From)