public static Phasor QueryPhasorForDevice(this TableOperations <Phasor> phasorTable, int deviceID, int sourceIndex) => phasorTable.QueryRecordWhere("DeviceID = {0} AND SourceIndex = {1}", deviceID, sourceIndex) ?? phasorTable.NewPhasor();