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
Boolean

Methods

GetValue(String)

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)

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