Skip to content

DynamicRow Class ​

Definition ​

Allocation-conscious row for runtime/dynamic TableInfo shapes.

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Properties ​

NameDescription
FieldCountGets the number of value slots.
ItemGets or sets the value at the specified insert/projection ordinal.
ItemGets or sets the value for the specified column or property name.
NamesGets the slot names in ordinal order.
TableGets the table metadata this row was created from, or null for free-form projections.

Methods ​

NameDescription
DynamicRow Create(TableInfo table)Creates an empty row whose slots match table insert column layout.
DynamicRow FromProjection(TableInfo table, string[] names, object[] values)Creates a projection row for a result set (including joined columns).
Dictionary<string, object> ToDictionary(bool includeNulls = null)Returns a dictionary copy of the row. Prefer ordinal APIs on hot paths.
bool TryGetValue(string name, out object value)Attempts to get a value by column or property name.

Remarks ​

Values are stored in ordinal slots aligned with Insert when created from a TableInfo. Name lookup uses a shared map owned by the row (not a per-cell dictionary). Prefer ordinal access on hot paths; use ToDictionary only at API boundaries.