Skip to content

DatabaseSessionExtensions Class ​

Definition ​

Provides extension methods for warming provider-specific database artifacts used by JASE operations.

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

Methods ​

NameDescription
Task PrecacheBindersAsync(IDatabaseSession session)Ensures provider metadata and cached operation binders are generated for the specified POCO type.
Task PrecacheBindersAsync(IDatabaseSession session, Type type)Ensures provider metadata and cached parameter binders are generated for the specified mapped type.

Remarks ​

These helpers allow callers to preload metadata and operation-specific caches before a hot path is executed. This is useful during application startup, service warmup, or benchmarking when first-use generation cost should be removed from the measured execution path.

Precached artifacts may include hydrated provider metadata and dynamically generated parameter binders for mapped POCO types.