Show / Hide Table of Contents

Class ExtraFieldsHelper

Handle extra fields on behalf of row objects, instead of baking this into the generated code

Inheritance
object
ExtraFieldsHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
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

OnSavedAsync()

Set persisted values to be the current values

Declaration
public Task OnSavedAsync()
Returns
Type Description
Task

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"

Overrides
object.ToString()

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top