You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: