Show / Hide Table of Contents

Class Record

Represents a client-side "Form" an analogue of WAVE.RecordModel.Record on C# server-side. The class is initialized from schema obtained from the server via JSON. The JSON is generated by RecordModelGenerator class. This class is usually used for API consumers that need to have the JS/client-like functionality on the server

Inheritance
System.Object
Row
DynamicRow
Record
Implements
IConfigurable
IConfigurationPersistent
System.IEquatable<Row>
System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable
IValidatable
IJSONWritable
Inherited Members
DynamicRow.Schema
DynamicRow.Data
DynamicRow.GetFieldValue(Schema.FieldDef)
DynamicRow.SetFieldValue(Schema.FieldDef, Object)
Row.MakeRow(Schema, Type)
Row.TryFillFromJSON(Row, IJSONDataObject, SetFieldFunc)
Row.Item[String]
Row.Item[Int32]
Row.GetDataStoreKey(String)
Row.Configure(IConfigSectionNode)
Row.PersistConfiguration(ConfigSectionNode)
Row.Validate()
Row.Validate(String)
Row.ValidateField(String, String)
Row.ValidateField(String, Schema.FieldDef)
Row.Equals(Row)
Row.Equals(Object)
Row.GetHashCode()
Row.SimpleFilterPredicate(String, Boolean)
Row.IEnumerable.GetEnumerator()
Row.GetEnumerator()
Row.ConvertFieldValueToDef(Schema.FieldDef, Object)
Row.ApplyDefaultFieldValues(String, Boolean)
Row.CopyFields(Row, Boolean, Boolean, Func<String, Schema.FieldDef, Boolean>, Func<String, String, Boolean>)
Row.GetFieldValueDescription(String, String, Boolean)
Row.GetFieldValueDescription(Int32, String, Boolean)
Row.GetDisplayFieldValue(String, String, Func<Object, Object>)
Row.GetDisplayFieldValue(Int32, String, Func<Object, Object>)
Row.GetClientFieldValueList(Object, Schema.FieldDef, String, String)
Row.GetClientFieldDef(Object, Schema.FieldDef, String, String)
Row.GetClientFieldValue(Object, Schema.FieldDef, String, String)
Row.WriteAsJSON(TextWriter, Int32, JSONWritingOptions)
Row.CheckMinMax(FieldAttribute, String, IComparable)
Row.FilterJSONSerializerField(Schema.FieldDef, JSONWritingOptions, String)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Wave.Client
Assembly: NFX.Wave.dll
Syntax
public class Record : DynamicRow, IConfigurable, IConfigurationPersistent, IEquatable<Row>, IEnumerable<object>, IEnumerable, IValidatable, IJSONWritable

Constructors

Record(JSONDataMap)

Declaration
public Record(JSONDataMap init)
Parameters
Type Name Description
JSONDataMap init

Record(String)

Declaration
public Record(string init)
Parameters
Type Name Description
System.String init

Fields

m_Errors

Declaration
protected List<Record.ServerError> m_Errors
Field Value
Type Description
System.Collections.Generic.List<Record.ServerError>

m_Init

Declaration
protected JSONDataMap m_Init
Field Value
Type Description
JSONDataMap

Properties

CSRFToken

Declaration
public string CSRFToken { get; }
Property Value
Type Description
System.String

FormMode

Declaration
public string FormMode { get; }
Property Value
Type Description
System.String

ID

Declaration
public Guid? ID { get; }
Property Value
Type Description
System.Nullable<System.Guid>

Init

Declaration
public JSONDataMap Init { get; }
Property Value
Type Description
JSONDataMap

ISOLang

Declaration
public string ISOLang { get; }
Property Value
Type Description
System.String

JSONData

Returns JSON representation of the Record including MODE, CSRF token and Roundtrip metafields

Declaration
public JSONDataMap JSONData { get; }
Property Value
Type Description
JSONDataMap

OK

Declaration
public bool ? OK { get; }
Property Value
Type Description
System.Nullable<System.Boolean>

Roundtrip

Declaration
public JSONDataMap Roundtrip { get; }
Property Value
Type Description
JSONDataMap

ServerErrors

Declaration
public IEnumerable<Record.ServerError> ServerErrors { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<Record.ServerError>

Methods

ClearErrors()

Declaration
public virtual void ClearErrors()

GetFieldDefFromJSON(JSONDataMap)

Declaration
protected virtual Schema.FieldDef GetFieldDefFromJSON(JSONDataMap def)
Parameters
Type Name Description
JSONDataMap def
Returns
Type Description
Schema.FieldDef

LoadData()

Declaration
protected virtual void LoadData()

MapInitToSchema()

Declaration
protected virtual Schema MapInitToSchema()
Returns
Type Description
Schema

MapJSToCLRCharCase(String)

Declaration
protected virtual CharCase MapJSToCLRCharCase(string kind)
Parameters
Type Name Description
System.String kind
Returns
Type Description
CharCase

MapJSToCLRKind(String)

Declaration
protected virtual DataKind MapJSToCLRKind(string kind)
Parameters
Type Name Description
System.String kind
Returns
Type Description
DataKind

MapJSToCLRType(String)

Declaration
protected virtual Type MapJSToCLRType(string tp)
Parameters
Type Name Description
System.String tp
Returns
Type Description
System.Type

Implements

IConfigurable
IConfigurationPersistent
System.IEquatable<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
IValidatable
IJSONWritable

Extension Methods

CollectionUtils.ForEach<T>(IEnumerable<T>, Action<T>)
CollectionUtils.ForEach<T>(IEnumerable<T>, Action<T, Int32>)
CollectionUtils.SkipLast<T>(IEnumerable<T>)
CollectionUtils.SkipLast<T>(IEnumerable<T>, Int32)
CollectionUtils.FirstMin<TResult, TComparand>(IEnumerable<TResult>, Func<TResult, TComparand>)
CollectionUtils.FirstMin<TResult, TComparand>(IEnumerable<TResult>, Func<TResult, TComparand>, out TComparand)
CollectionUtils.FirstMax<TResult, TComparand>(IEnumerable<TResult>, Func<TResult, TComparand>)
CollectionUtils.FirstMax<TResult, TComparand>(IEnumerable<TResult>, Func<TResult, TComparand>, out TComparand)
CollectionUtils.FirstOrAnyOrDefault<TResult>(IEnumerable<TResult>, Func<TResult, Boolean>)
CollectionUtils.Distinct<TResult, TKey>(IEnumerable<TResult>, Func<TResult, TKey>)
MiscUtils.NonNull<T>(T, Func<Exception>, String)
ObjectValueConversion.AsString(Object, String, ConvertErrorHandling)
ObjectValueConversion.AsNonNullOrEmptyString(Object)
ObjectValueConversion.AsLaconicConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsJSONConfig(Object, ConfigSectionNode, String, ConvertErrorHandling)
ObjectValueConversion.AsXMLConfig(Object, ConfigSectionNode, ConvertErrorHandling)
ObjectValueConversion.AsChar(Object, Char, ConvertErrorHandling)
ObjectValueConversion.AsNullableChar(Object, Nullable<Char>, ConvertErrorHandling)
ObjectValueConversion.AsByte(Object, Byte, ConvertErrorHandling)
ObjectValueConversion.AsNullableByte(Object, Nullable<Byte>, ConvertErrorHandling)
ObjectValueConversion.AsSByte(Object, SByte, ConvertErrorHandling)
ObjectValueConversion.AsNullableSByte(Object, Nullable<SByte>, ConvertErrorHandling)
ObjectValueConversion.AsShort(Object, Int16, ConvertErrorHandling)
ObjectValueConversion.AsNullableShort(Object, Nullable<Int16>, ConvertErrorHandling)
ObjectValueConversion.AsUShort(Object, UInt16, ConvertErrorHandling)
ObjectValueConversion.AsNullableUShort(Object, Nullable<UInt16>, ConvertErrorHandling)
ObjectValueConversion.AsInt(Object, Int32, ConvertErrorHandling)
ObjectValueConversion.AsNullableInt(Object, Nullable<Int32>, ConvertErrorHandling)
ObjectValueConversion.AsUInt(Object, UInt32, ConvertErrorHandling)
ObjectValueConversion.AsNullableUInt(Object, Nullable<UInt32>, ConvertErrorHandling)
ObjectValueConversion.AsLong(Object, Int64, ConvertErrorHandling)
ObjectValueConversion.AsNullableLong(Object, Nullable<Int64>, ConvertErrorHandling)
ObjectValueConversion.AsULong(Object, UInt64, ConvertErrorHandling)
ObjectValueConversion.AsNullableULong(Object, Nullable<UInt64>, ConvertErrorHandling)
ObjectValueConversion.AsDouble(Object, Double, ConvertErrorHandling)
ObjectValueConversion.AsNullableDouble(Object, Nullable<Double>, ConvertErrorHandling)
ObjectValueConversion.AsFloat(Object, Single, ConvertErrorHandling)
ObjectValueConversion.AsNullableFloat(Object, Nullable<Single>, ConvertErrorHandling)
ObjectValueConversion.AsDecimal(Object, Decimal, ConvertErrorHandling)
ObjectValueConversion.AsNullableDecimal(Object, Nullable<Decimal>, ConvertErrorHandling)
ObjectValueConversion.AsBool(Object, Boolean, ConvertErrorHandling)
ObjectValueConversion.AsNullableBool(Object, Nullable<Boolean>, ConvertErrorHandling)
ObjectValueConversion.AsGUID(Object, Guid, ConvertErrorHandling)
ObjectValueConversion.AsNullableGUID(Object, Nullable<Guid>, ConvertErrorHandling)
ObjectValueConversion.AsDateTime(Object)
ObjectValueConversion.AsDateTime(Object, DateTime, ConvertErrorHandling)
ObjectValueConversion.AsNullableDateTime(Object, Nullable<DateTime>, ConvertErrorHandling)
ObjectValueConversion.AsGDID(Object)
ObjectValueConversion.AsGDID(Object, GDID, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDID(Object, Nullable<GDID>, ConvertErrorHandling)
ObjectValueConversion.AsGDIDSymbol(Object)
ObjectValueConversion.AsGDIDSymbol(Object, GDIDSymbol, ConvertErrorHandling)
ObjectValueConversion.AsNullableGDIDSymbol(Object, Nullable<GDIDSymbol>, ConvertErrorHandling)
ObjectValueConversion.AsTimeSpan(Object)
ObjectValueConversion.AsTimeSpan(Object, TimeSpan, ConvertErrorHandling)
ObjectValueConversion.AsNullableTimeSpan(Object, Nullable<TimeSpan>, ConvertErrorHandling)
ObjectValueConversion.AsEnum<TEnum>(Object, TEnum, ConvertErrorHandling)
ObjectValueConversion.AsNullableEnum<TEnum>(Object, Nullable<TEnum>, ConvertErrorHandling)
ObjectValueConversion.AsUri(Object, Uri, ConvertErrorHandling)
LookAheadExtensions.AsLookAheadEnumerable<T>(IEnumerable<T>)
JSONExtensions.ToJSON(Object, JSONWritingOptions)
JSONExtensions.ToJSON(Object, TextWriter, JSONWritingOptions)
JSONExtensions.ToJSON(Object, Stream, JSONWritingOptions, Encoding)
ErlObject.ToErlObject(Object)
ErlObject.ToErlObject(Object, ErlTypeOrder, Boolean)
ErlSchemaUtils.ToErlObject(Row, String, String, Boolean)
ErlSchemaUtils.Update(Row, IErlObject, Schema, String, String, Registry<Schema>)
Back to top Copyright © 2006-2018 Agnicore Inc
Generated by DocFX