Clutch
Clutch copied to clipboard
Frequently used helpers for .NET
Added an additional check to avoid `InvalidOperationException: Reader timing has already finished` when EF tries to close `DbTracingDataReader` twice
## Issue Disposing an instance of `EntityDataReader` class leads to rising `InvalidOperationException: Reader timing has already finished` . ## Cause The exception is thrown by the [DbTracingContext.OnReaderFinished()](https://github.com/Kukkimonsuta/Clutch/blob/a37937e8a02aca4fd87589021f17fd3fb48e5bf6/src/Clutch.Diagnostics.EntityFramework/DbTracingContext.cs) method called second...
EF5(4.4) ,Net4 code first approach with sybase throws "Unable to determine the provider name for connection of type 'iAnywhere.Data.SQLAnywhere.SAConnection'." I can log fine with SQL server connection. Also works with...
``` System.InvalidCastException: Unable to cast object of type 'Clutch.Diagnostics.EntityFramework.DbTracingConnection' to type 'System.Data.SqlClient.SqlConnection'. at System.Data.SqlClient.SqlCommand.set_DbConnection(DbConnection value) at System.Data.Common.DbCommand.set_Connection(DbConnection value) at System.Data.Entity.Internal.InterceptableDbCommand.set_DbConnection(DbConnection value) at System.Data.Common.DbCommand.set_Connection(DbConnection value) at System.Data.Entity.Core.Common.Utils.CommandHelper.SetStoreProviderCommandState(EntityCommand entityCommand, EntityTransaction entityTransaction, DbCommand...