@@ -66,8 +66,8 @@ public void CompleteDatabaseInfoTest()
66
66
[ Test ]
67
67
public async Task PerformanceAnalysis_SELECT_Test ( )
68
68
{
69
- IDictionary < string , short > tableNameList = GetTableNameList ( ) ;
70
- short tableIdTest = tableNameList [ "TEST" ] ;
69
+ var tableNameList = GetTableNameList ( ) ;
70
+ var tableIdTest = tableNameList [ "TEST" ] ;
71
71
72
72
var dbInfo = new FbDatabaseInfo ( Connection ) ;
73
73
var insertCount = await dbInfo . GetInsertCountAsync ( ) ;
@@ -93,8 +93,8 @@ public async Task PerformanceAnalysis_SELECT_Test()
93
93
[ Test ]
94
94
public async Task PerformanceAnalysis_INSERT_Test ( )
95
95
{
96
- IDictionary < string , short > tableNameList = GetTableNameList ( ) ;
97
- short tableIdTest = tableNameList [ "TEST" ] ;
96
+ var tableNameList = GetTableNameList ( ) ;
97
+ var tableIdTest = tableNameList [ "TEST" ] ;
98
98
99
99
var dbInfo = new FbDatabaseInfo ( Connection ) ;
100
100
var insertCount = await dbInfo . GetInsertCountAsync ( ) ;
@@ -120,8 +120,8 @@ public async Task PerformanceAnalysis_INSERT_Test()
120
120
[ Test ]
121
121
public async Task PerformanceAnalysis_UPDATE_Test ( )
122
122
{
123
- IDictionary < string , short > tableNameList = GetTableNameList ( ) ;
124
- short tableIdTest = tableNameList [ "TEST" ] ;
123
+ var tableNameList = GetTableNameList ( ) ;
124
+ var tableIdTest = tableNameList [ "TEST" ] ;
125
125
126
126
var fbCommand = new FbCommand ( "INSERT INTO TEST (INT_FIELD) VALUES (900)" , Connection ) ;
127
127
fbCommand . ExecuteNonQuery ( ) ;
@@ -151,11 +151,11 @@ public async Task PerformanceAnalysis_UPDATE_Test()
151
151
private IDictionary < short , ulong > GetAffectedTables ( IDictionary < short , ulong > aStatisticInfoBefore , IDictionary < short , ulong > aStatisticInfoAfter )
152
152
{
153
153
var result = new Dictionary < short , ulong > ( ) ;
154
- foreach ( KeyValuePair < short , ulong > keyValuePair in aStatisticInfoAfter )
154
+ foreach ( var keyValuePair in aStatisticInfoAfter )
155
155
{
156
- if ( aStatisticInfoBefore . TryGetValue ( keyValuePair . Key , out ulong value ) )
156
+ if ( aStatisticInfoBefore . TryGetValue ( keyValuePair . Key , out var value ) )
157
157
{
158
- ulong counter = keyValuePair . Value - value ;
158
+ var counter = keyValuePair . Value - value ;
159
159
if ( counter > 0 )
160
160
{
161
161
result . Add ( keyValuePair . Key , counter ) ;
@@ -172,7 +172,7 @@ private IDictionary<string, short> GetTableNameList()
172
172
IDictionary < string , short > result = new Dictionary < string , short > ( ) ;
173
173
174
174
var command = new FbCommand ( "select R.RDB$RELATION_ID, R.RDB$RELATION_NAME from RDB$RELATIONS R WHERE RDB$SYSTEM_FLAG = 0" , Connection ) ;
175
- FbDataReader reader = command . ExecuteReader ( ) ;
175
+ var reader = command . ExecuteReader ( ) ;
176
176
while ( reader . Read ( ) )
177
177
{
178
178
result . Add ( reader . GetString ( 1 ) . Trim ( ) , reader . GetInt16 ( 0 ) ) ;
0 commit comments