withSession method

MssqlQueryContext<TRow> withSession(
  1. MssqlSession session
)

The same context on session, so a snapshot transaction can run the page and its count without rebuilding bindings.

Implementation

MssqlQueryContext<TRow> withSession(MssqlSession session) =>
    MssqlQueryContext<TRow>(
      session: session,
      binding: binding,
      dialect: _fixedDialect,
      clock: clock,
      changes: changes,
      capabilities: capabilities,
      observer: observer,
      observerOptions: observerOptions,
    );