Skip to content

Commit 33e9cab

Browse files
committed
Improving code completion
1 parent f237e52 commit 33e9cab

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

DataCommander.Providers.SqlServer2005/ObjectName.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ string IObjectName.QuotedName
4545
sb.Append(QuoteIdentifier(this.schemaName));
4646
sb.Append('.');
4747
}
48-
else if (this.sqlObject.ParentAlias != null)
49-
{
50-
sb.Append(this.sqlObject.ParentAlias);
51-
sb.Append('.');
52-
}
48+
//else if (this.sqlObject.ParentAlias != null)
49+
//{
50+
// sb.Append(this.sqlObject.ParentAlias);
51+
// sb.Append('.');
52+
//}
5353

5454
sb.Append(QuoteIdentifier(this.objectName));
5555

DataCommander.Providers.SqlServer2005/SqlServerProvider.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ namespace DataCommander.Providers.SqlServer2005
55
using System.Data;
66
using System.Data.Common;
77
using System.Data.SqlClient;
8-
using System.Diagnostics;
98
using System.IO;
109
using System.Linq;
1110
using System.Text;
12-
using System.Windows.Forms;
1311
using System.Xml;
1412
using DataCommander.Foundation;
1513
using DataCommander.Foundation.Configuration;
@@ -674,7 +672,7 @@ where o.type in('P','X')
674672
if (fieldCount == 1)
675673
{
676674
schemaName = null;
677-
objectName = dataReader.GetString(0);
675+
objectName = dataReader[0].ToString();
678676
}
679677
else
680678
{

DataCommander.Providers/Query/QueryForm.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2576,10 +2576,8 @@ private void ShowTimer(int scale)
25762576
if (rowCount > 0)
25772577
{
25782578
double seconds = (double)ticks/Stopwatch.Frequency;
2579-
double speedD = rowCount/seconds;
2580-
int speedInt = (int)speedD;
25812579

2582-
text += " (" + speedInt + " rows/sec)";
2580+
text += " (" + Math.Round(rowCount/seconds, 0) + " rows/sec)";
25832581
}
25842582

25852583
sbPanelRows.Text = text;

0 commit comments

Comments
 (0)