Appearance
DynamicRow Class
Definition
Allocation-conscious row for runtime/dynamic TableInfo shapes.
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Properties
| Name | Description |
|---|---|
FieldCount | Gets the number of value slots. |
Item | Gets or sets the value at the specified insert/projection ordinal. |
Item | Gets or sets the value for the specified column or property name. |
Names | Gets the slot names in ordinal order. |
Table | Gets the table metadata this row was created from, or null for free-form projections. |
Methods
| Name | Description |
|---|---|
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.