File tree 6 files changed +9
-9
lines changed
benchmarks/Dapper.Tests.Performance
6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 2
2
using System ;
3
3
using System . ComponentModel ;
4
4
using System . Data ;
5
- using System . Data . SqlClient ;
5
+ using Microsoft . Data . SqlClient ;
6
6
7
7
namespace Dapper . Tests . Performance
8
8
{
Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ public void Setup()
20
20
// We need this since benchmarks using System.Data.SqlClient
21
21
var dbSetting = new SqlServerDbSetting ( ) ;
22
22
DbSettingMapper
23
- . Add < System . Data . SqlClient . SqlConnection > ( dbSetting , true ) ;
23
+ . Add < Microsoft . Data . SqlClient . SqlConnection > ( dbSetting , true ) ;
24
24
DbHelperMapper
25
- . Add < System . Data . SqlClient . SqlConnection > ( new SqlServerDbHelper ( ) , true ) ;
25
+ . Add < Microsoft . Data . SqlClient . SqlConnection > ( new SqlServerDbHelper ( ) , true ) ;
26
26
StatementBuilderMapper
27
- . Add < System . Data . SqlClient . SqlConnection > ( new SqlServerStatementBuilder ( dbSetting ) , true ) ;
27
+ . Add < Microsoft . Data . SqlClient . SqlConnection > ( new SqlServerStatementBuilder ( dbSetting ) , true ) ;
28
28
29
29
ClassMapper . Add < Post > ( "Posts" ) ;
30
30
}
@@ -54,7 +54,7 @@ public Post QueryDynamic()
54
54
public Post QueryField ( )
55
55
{
56
56
Step ( ) ;
57
- return _connection . Query < Post > ( new QueryField [ ] { new ( nameof ( Post . Id ) , i ) } ) . First ( ) ;
57
+ return _connection . Query < Post > ( [ new ( nameof ( Post . Id ) , i ) ] ) . First ( ) ;
58
58
}
59
59
60
60
[ Benchmark ( Description = "ExecuteQuery<T>" ) ]
Original file line number Diff line number Diff line change 1
1
using BenchmarkDotNet . Attributes ;
2
2
using System ;
3
3
using System . Configuration ;
4
- using System . Data . SqlClient ;
4
+ using Microsoft . Data . SqlClient ;
5
5
6
6
namespace Dapper . Tests . Performance
7
7
{
Original file line number Diff line number Diff line change 1
1
using System ;
2
2
using System . Collections . Generic ;
3
3
using System . Data ;
4
- using System . Data . SqlClient ;
4
+ using Microsoft . Data . SqlClient ;
5
5
using System . Diagnostics ;
6
6
using System . Linq ;
7
7
Original file line number Diff line number Diff line change 1
1
using BenchmarkDotNet . Running ;
2
2
using System ;
3
- using System . Data . SqlClient ;
3
+ using Microsoft . Data . SqlClient ;
4
4
using System . Linq ;
5
5
using static System . Console ;
6
6
Original file line number Diff line number Diff line change 1
1
using System ;
2
- using System . Data . SqlClient ;
2
+ using Microsoft . Data . SqlClient ;
3
3
using System . Runtime . CompilerServices ;
4
4
5
5
namespace Dapper . Tests . Performance
You can’t perform that action at this time.
0 commit comments