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

MultiShardConnection should inherit from System.Data.Common.DbConnection #179

Open
wiatr22 opened this issue Jan 16, 2019 · 1 comment
Open

Comments

@wiatr22
Copy link

wiatr22 commented Jan 16, 2019

My code needs to run in both environments: single database and multishard databases. I need an ease way to manipulate between MultiShardConnection and SqlConnection, between MultiShardCommand and SqlCommand and so on. I would be very gratefull if MultiShardConnection class whould inherit from System.Data.Common.DbConnection class. That would make possible for me to operate on abstract classes from System.Data.Common namespace instead of specific implementation either MultiShardConnection or SqlConnection.

@jaredmoo
Copy link
Contributor

I understand a built-in solution would be preferred, but DbConnection is public, so to get yourself unblocked you could implement your own wrapper class in your own assembly that inherits from DbConnection.

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

No branches or pull requests

2 participants