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
Attempting to perform a non-scalar query with Dapper in a transaction requires access to the transaction.
publicIEnumerable<TestEntity>GetEntities(){conststringquery="SELECT * FROM TestEntity";return SqlConnection3.Query<TestEntity>(query);}
The above will throw...
System.InvalidOperationException: ExecuteReader requires the command to have a transaction when the connection assigned to the command is in a pending local transaction. The Transaction property of the command has not been initialized.
Modify the AdoContext to allow access to the transaction as required.
The text was updated successfully, but these errors were encountered:
* Create test to identify problem with Dapper non-scalar transactional reads.
* Expose transaction for use with Dapper
Note this transaction object should not be used to commit or rollback the transaction!
* Update ambient transaction get to return null when no transaction in bug #7
Attempting to perform a non-scalar query with Dapper in a transaction requires access to the transaction.
The above will throw...
Modify the AdoContext to allow access to the transaction as required.
The text was updated successfully, but these errors were encountered: