You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Source/Libraries/GSF.PhasorProtocols/UI/DataModels/OutputStreamMeasurement.cs
+6-5
Original file line number
Diff line number
Diff line change
@@ -218,10 +218,10 @@ public static IList<int> LoadKeys(AdoDataConnection database, int outputStreamID
218
218
219
219
stringsortClause=string.Empty;
220
220
221
+
DataTableoutputStreamMeasurementTable;
221
222
if(!string.IsNullOrEmpty(sortMember))
222
-
sortClause=$"ORDER BY {sortMember}{sortDirection}";
223
-
224
-
DataTableoutputStreamMeasurementTable=database.Connection.RetrieveData(database.AdapterType,$"SELECT ID From OutputStreamMeasurementDetail where AdapterID = {outputStreamID}{sortClause}");
223
+
outputStreamMeasurementTable=database.Connection.RetrieveData(database.AdapterType,"SELECT ID From OutputStreamMeasurementDetail where AdapterID = {0} ORDER BY {1} {2}",outputStreamID,sortMember,sortDirection);
224
+
elseoutputStreamMeasurementTable=database.Connection.RetrieveData(database.AdapterType,"SELECT ID From OutputStreamMeasurementDetail where AdapterID = {0}",outputStreamID);
query=$"SELECT NodeID, AdapterID, ID, HistorianID, PointID, SignalReference, SourcePointTag, HistorianAcronym FROM OutputStreamMeasurementDetail WHERE ID IN ({commaSeparatedKeys})";
0 commit comments