Skip to content

Enable nullable context and align IDataReader null semantics with ADO.NET contract#758

Open
appel1 wants to merge 2 commits into
developfrom
nullable
Open

Enable nullable context and align IDataReader null semantics with ADO.NET contract#758
appel1 wants to merge 2 commits into
developfrom
nullable

Conversation

@appel1

@appel1 appel1 commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator
  • Enabled and propagated nullable annotations through core reader, factory, and related components.
  • Aligned IDataReader behavior: - GetValue / GetValues now surface DBNull.Value for empty/error cells.
  • IsDBNull reflects the above contract.
  • Typed getters (including GetString) now behave contract-style (throw on DBNull unless caller checks IsDBNull first).

appel1 added 2 commits June 29, 2026 20:01
Apply nullable reference annotations and guarded flows across the reader, factory, core formats, and dataset surfaces.
Change NullReferenceException to ObjectDisposedException in a few places.
Update GetValue-based expectations and empty-row checks in tests to match DBNull.Value semantics for null/error cells.
Make GetString match IDataRecord contract by throwing on DBNull-backed cells, and update tests to assert IsDBNull plus InvalidCastException where appropriate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant