Appearance
HydrateDatabaseMetadata Method
Definition
- Namespace:
JASE.Database - Assembly:
JASE.Database.dll
Task HydrateDatabaseMetadata(IDatabaseSession connection)
csharp
Task HydrateDatabaseMetadata(IDatabaseSession connection)Hydrates this table definition with provider-specific metadata retrieved from the database.
Parameters
| Name | Description |
|---|---|
connection | The active database session used to query schema information for the current table. |
Returns
A task that completes when database-derived metadata has been merged into the current column definitions.
Remarks
This method retrieves the database provider's definition of the current table and merges selected metadata into the existing in-memory column map.
The merge updates provider-derived values such as computed status, nullability, ordinal position, SQL datatype, and, for numeric columns, precision and scale.
Metadata is applied only once. If provider metadata has already been loaded, the method returns without making changes.
The merge is performed under a lock to ensure the column map and related cached values remain internally consistent during hydration.