Class DynamicRow
Represents a row of data which has a schema only known at run-time. Dynamic rows store data in object[] internally, providing better flexibility(ability to define schema at runtime) than TypedRows at the expense of performance. This class is not sealed so implementors may override configuration persistence
Implements
System.IEquatable<Row>
System.Collections.Generic.IEnumerable<System.Object>
System.Collections.IEnumerable
Inherited Members
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.DataAccess.CRUD
Assembly: NFX.dll
Syntax
[Serializable]
public class DynamicRow : Row, IConfigurable, IConfigurationPersistent, IEquatable<Row>, IEnumerable<object>, IEnumerable, IValidatable, IJSONWritable
Constructors
DynamicRow()
Declaration
protected DynamicRow()
DynamicRow(Schema)
Declaration
public DynamicRow(Schema schema)
Parameters
Type | Name | Description |
---|---|---|
Schema | schema |
Properties
Data
Provides access to raw array of values that this row contains
Declaration
public object[] Data { get; }
Property Value
Type | Description |
---|---|
System.Object[] |
Schema
References a schema for a table that this row is a part of
Declaration
public override Schema Schema { get; }
Property Value
Type | Description |
---|---|
Schema |
Overrides
Methods
GetFieldValue(Schema.FieldDef)
Declaration
public override object GetFieldValue(Schema.FieldDef fdef)
Parameters
Type | Name | Description |
---|---|---|
Schema.FieldDef | fdef |
Returns
Type | Description |
---|---|
System.Object |
Overrides
SetFieldValue(Schema.FieldDef, Object)
Declaration
public override void SetFieldValue(Schema.FieldDef fdef, object value)
Parameters
Type | Name | Description |
---|---|---|
Schema.FieldDef | fdef | |
System.Object | value |
Overrides
Implements
System.IEquatable<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable