Class DynamicDoc
Represents a data document having schema only known at run-time. Dynamic docs store data in object[] internally, providing better flexibility(ability to define schema at runtime) than TypedDocs at the expense of performance. This class is not sealed so implementors may override configuration persistence
Implements
System.IEquatable<Doc>
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: Azos.Data
Assembly: Azos.dll
Syntax
[Serializable]
public class DynamicDoc : Doc, IConfigurable, IConfigurationPersistent, IEquatable<Doc>, IEnumerable<object>, IEnumerable, IValidatable, IJSONWritable
Constructors
DynamicDoc()
Declaration
protected DynamicDoc()
DynamicDoc(Schema)
Declaration
public DynamicDoc(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