-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug/7 non scalar query in dapper requires access to dbtransaction (#8)
* 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!
- Loading branch information
Showing
6 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
Promethix.Framework.Ado.Tests/TestSupport/DataAccess/Mssql/MssqlContextExample3.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Promethix.Framework.Ado.Enums; | ||
using Promethix.Framework.Ado.Implementation; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Promethix.Framework.Ado.Tests.TestSupport.DataAccess.Mssql | ||
{ | ||
public class MssqlContextExample3 : AdoContext | ||
{ | ||
public MssqlContextExample3() | ||
: base( | ||
"MssqlContextExample3", | ||
"Microsoft.Data.SqlClient", | ||
"Server=(local);Database=AdoScopeTest1;Integrated Security=True;TrustServerCertificate=True", | ||
AdoContextExecutionOption.Transactional) | ||
{ | ||
// No Implementation | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters