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
I am getting an object null error when passing in the Connection object. The line causing the problem appears to be:
// Resolve the DB Type
string DBTypeName = (_factory == null ? _sharedConnection.GetType() : _factory.GetType()).Name;
I changed it to:
// Resolve the DB Type
string DBTypeName = (_factory == null ? _sharedConnection.GetType() : _factory.GetType()).FullName;
The reason for that was this line:
if (TypeName.StartsWith("System.Data.SqlClient."))
But using name gives just SqlConnection.
The text was updated successfully, but these errors were encountered:
I am getting an object null error when passing in the Connection object. The line causing the problem appears to be:
// Resolve the DB Type
string DBTypeName = (_factory == null ? _sharedConnection.GetType() : _factory.GetType()).Name;
I changed it to:
// Resolve the DB Type
string DBTypeName = (_factory == null ? _sharedConnection.GetType() : _factory.GetType()).FullName;
The reason for that was this line:
if (TypeName.StartsWith("System.Data.SqlClient."))
But using name gives just SqlConnection.
The text was updated successfully, but these errors were encountered: