Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reinstate support for IDataReader #1913

Merged
merged 2 commits into from
Jun 20, 2023
Merged

reinstate support for IDataReader #1913

merged 2 commits into from
Jun 20, 2023

Conversation

mgravell
Copy link
Member

@mgravell mgravell commented Jun 9, 2023

in 01f03ef, we focused everything around DbDataReader, but: if someone is currently using the sync API with a fake IDbConnection that returns IDataReader: it would have worked and we will have broken them

I'd rather not get the complaints; so here I reinstate support by wrapping IDataReader into our own DbDataReader; I will supplement this by adding an analyzer in AOT that yells at them until they change their ways

also:

  • implement some missing async overrides in both of our DbDataReader implementations
  • fixup compiler nits

rather wrap it for now (to make the lib work), and add an analyzer
in AOT that shouts at them for using IDbConnection

also: compiler nits
@mgravell mgravell merged commit d91d904 into main Jun 20, 2023
1 check passed
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.

None yet

1 participant