@@ -66,7 +66,7 @@ public void CompleteDatabaseInfoTest()
66
66
[ Test ]
67
67
public async Task PerformanceAnalysis_SELECT_Test ( )
68
68
{
69
- var tableNameList = GetTableNameList ( ) ;
69
+ var tableNameList = await GetTableNameList ( ) ;
70
70
var tableIdTest = tableNameList [ "TEST" ] ;
71
71
72
72
var dbInfo = new FbDatabaseInfo ( Connection ) ;
@@ -93,7 +93,7 @@ public async Task PerformanceAnalysis_SELECT_Test()
93
93
[ Test ]
94
94
public async Task PerformanceAnalysis_INSERT_Test ( )
95
95
{
96
- var tableNameList = GetTableNameList ( ) ;
96
+ var tableNameList = await GetTableNameList ( ) ;
97
97
var tableIdTest = tableNameList [ "TEST" ] ;
98
98
99
99
var dbInfo = new FbDatabaseInfo ( Connection ) ;
@@ -120,7 +120,7 @@ public async Task PerformanceAnalysis_INSERT_Test()
120
120
[ Test ]
121
121
public async Task PerformanceAnalysis_UPDATE_Test ( )
122
122
{
123
- var tableNameList = GetTableNameList ( ) ;
123
+ var tableNameList = await GetTableNameList ( ) ;
124
124
var tableIdTest = tableNameList [ "TEST" ] ;
125
125
126
126
var fbCommand = new FbCommand ( "INSERT INTO TEST (INT_FIELD) VALUES (900)" , Connection ) ;
@@ -167,13 +167,12 @@ IDictionary<short, ulong> GetAffectedTables(IDictionary<short, ulong> statisticI
167
167
return result ;
168
168
}
169
169
170
- IDictionary < string , short > GetTableNameList ( )
170
+ async Task < IDictionary < string , short > > GetTableNameList ( )
171
171
{
172
172
IDictionary < string , short > result = new Dictionary < string , short > ( ) ;
173
-
174
173
var command = new FbCommand ( "select R.RDB$RELATION_ID, R.RDB$RELATION_NAME from RDB$RELATIONS R WHERE RDB$SYSTEM_FLAG = 0" , Connection ) ;
175
- var reader = command . ExecuteReader ( ) ;
176
- while ( reader . Read ( ) )
174
+ var reader = await command . ExecuteReaderAsync ( ) ;
175
+ while ( await reader . ReadAsync ( ) )
177
176
{
178
177
result . Add ( reader . GetString ( 1 ) . Trim ( ) , reader . GetInt16 ( 0 ) ) ;
179
178
}
0 commit comments