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
phasorTable=database.Connection.RetrieveData(database.AdapterType,"SELECT ID From PhasorDetail WHERE DeviceID = {0} ORDER BY {1} {2}",DefaultTimeout,deviceID,sortMember,sortDirection);
288
+
elsephasorTable=database.Connection.RetrieveData(database.AdapterType,"SELECT ID From PhasorDetail WHERE DeviceID = {0}",DefaultTimeout,deviceID);
292
289
293
290
foreach(DataRowrowinphasorTable.Rows)
294
291
phasorList.Add(row.ConvertField<int>("ID"));
@@ -316,17 +313,14 @@ public static ObservableCollection<Phasor> Load(AdoDataConnection database, ILis
query=$"SELECT ID, DeviceID, Label, Type, Phase, BaseKV, DestinationPhasorID, SourceIndex, CreatedBy, CreatedOn, UpdatedBy, UpdatedOn FROM Phasor WHERE ID IN ({commaSeparatedKeys})";
DataTablephasorTable=database.Connection.RetrieveData(database.AdapterType,"SELECT ID, DeviceID, Label, Type, Phase, BaseKV, DestinationPhasorID, SourceIndex, CreatedBy, CreatedOn, UpdatedBy, UpdatedOn FROM Phasor WHERE ID IN ({0})",DefaultTimeout,commaSeparatedKeys);
foreach(DataRowrowindatabase.Connection.RetrieveData(database.AdapterType,$"SELECT * FROM DataOperation WHERE (NodeID IS NULL OR NodeID={NodeIDQueryString}) AND Enabled <> 0 ORDER BY LoadOrder").Rows)
368
+
foreach(DataRowrowindatabase.Connection.RetrieveData(database.AdapterType,"SELECT * FROM DataOperation WHERE (NodeID IS NULL OR NodeID={0}) AND Enabled <> 0 ORDER BY LoadOrder",NodeIDQueryString).Rows)
stringquery=$"SELECT * FROM {tableName} WHERE {primaryKeyColumn} IN (SELECT PrimaryKeyValue FROM TrackedChange WHERE TableName = '{tableName}' AND ID > {currentVersion}) AND NodeID = {NodeIDQueryString}";
changes=database.Connection.RetrieveData(database.AdapterType,"SELECT * FROM {0} WHERE {1} IN "+
540
+
"(SELECT PrimaryKeyValue FROM TrackedChange WHERE TableName = '{0}' AND ID > {2}) AND NodeID = {3}",tableName,primaryKeyColumn,currentVersion,NodeIDQueryString);
0 commit comments