Class ExtraFieldsHelper
Handle extra fields on behalf of row objects, instead of baking this into the generated code
Inherited Members
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public class ExtraFieldsHelper
Constructors
ExtraFieldsHelper(TableRowBase)
Track extra fields on a row
Declaration
public ExtraFieldsHelper(TableRowBase row)
Parameters
Type | Name | Description |
---|---|---|
TableRowBase | row | row to track extra fields for |
Properties
EnforceRequiredFields
Allows required field enforcement to be turned off - used for person on user.
Declaration
public bool EnforceRequiredFields { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetValue(string)
Handle extra fields on behalf of row objects, instead of baking this into the generated code
Declaration
public object GetValue(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
Returns
Type | Description |
---|---|
object |
OnLoad(SoDataReader, TableInfo)
Set the persisted values from the reader
Declaration
public void OnLoad(SoDataReader reader, TableInfo tableInfo)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | data reader |
TableInfo | tableInfo | table reference identifying columns |
OnSaved()
Set persisted values to be the current values
Declaration
public void OnSaved()
Reset()
Reset current values to be the persisted values
Declaration
public void Reset()
SetValue(string, object)
Handle extra fields on behalf of row objects, instead of baking this into the generated code
Declaration
public void SetValue(string name, object val)
Parameters
Type | Name | Description |
---|---|---|
string | name | |
object | val |
ToString()
Returns string-ified values for all extra fields (without extra field names prefixed)
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | "foo, 123, bar" |