Class TypedDoc
Represents a type-safe data document with schema known at compile-time. Typed docs store data in instance fields, providing better performance and schema definition compile-time checking than DynamicDocs at the expense of inability to define schema at runtime
Inheritance
System.Object
TypedDoc
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 abstract class TypedDoc : Doc, IConfigurable, IConfigurationPersistent, IEquatable<Doc>, IEnumerable<object>, IEnumerable, IValidatable, IJSONWritable
Constructors
TypedDoc()
Declaration
protected TypedDoc()
Properties
Schema
References a schema for a table that this row is a part of
Declaration
public override sealed 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