C# Класс GSF.PhasorProtocols.UI.DataModels.OutputStreamDevice

Represents a record of OutputStreamDevice information as defined in the database.
Наследование: DataModelBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
AddDevices ( AdoDataConnection database, int outputStreamID, ObservableCollection devices, bool addDigitals, bool addAnalogs ) : string

Adds multiple devices to output steam.

Delete ( AdoDataConnection database, int outputStreamID, string outputStreamDeviceAcronym ) : string

Deletes specified OutputStreamDevice record from database.

GetLookupList ( AdoDataConnection database, int outputStreamID, bool isOptional = false ) : string>.Dictionary

Gets a Dictionary{T1,T2} style list of OutputStreamDevice information.

GetOutputStreamDevice ( AdoDataConnection database, string whereClause ) : OutputStreamDevice

Gets output stream device from the database based on where condition provided.

GetOutputStreamDevices ( AdoDataConnection database, string whereClause ) : ObservableCollection

Gets collection of output stream devices.

Load ( AdoDataConnection database, IList keys ) : ObservableCollection

Loads OutputStreamDevice information as an ObservableCollection{T} style list.

LoadKeys ( AdoDataConnection database, int outputStreamID, string sortMember = "", string sortDirection = "" ) : IList

LoadKeys OutputStreamDevice information as an ObservableCollection{T} style list.

Save ( AdoDataConnection database, OutputStreamDevice outputStreamDevice ) : string

Saves OutputStreamDevice information to database.

Описание методов

AddDevices() публичный статический Метод

Adds multiple devices to output steam.
public static AddDevices ( AdoDataConnection database, int outputStreamID, ObservableCollection devices, bool addDigitals, bool addAnalogs ) : string
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to which devices needs to be added.
devices ObservableCollection Collection of devices to be added.
addDigitals bool Boolean flag indicating if analogs should be added.
addAnalogs bool Boolean flag indicating if digirals should be added.
Результат string

Delete() публичный статический Метод

Deletes specified OutputStreamDevice record from database.
public static Delete ( AdoDataConnection database, int outputStreamID, string outputStreamDeviceAcronym ) : string
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to filter data.
outputStreamDeviceAcronym string ID of the record to be deleted.
Результат string

GetLookupList() публичный статический Метод

Gets a Dictionary{T1,T2} style list of OutputStreamDevice information.
public static GetLookupList ( AdoDataConnection database, int outputStreamID, bool isOptional = false ) : string>.Dictionary
database AdoDataConnection to connection to database.
outputStreamID int ID of the output stream to filter data.
isOptional bool Indicates if selection on UI is optional for this collection.
Результат string>.Dictionary

GetOutputStreamDevice() публичный статический Метод

Gets output stream device from the database based on where condition provided.
public static GetOutputStreamDevice ( AdoDataConnection database, string whereClause ) : OutputStreamDevice
database AdoDataConnection to connection to database.
whereClause string query string to filter data.
Результат OutputStreamDevice

GetOutputStreamDevices() публичный статический Метод

Gets collection of output stream devices.
public static GetOutputStreamDevices ( AdoDataConnection database, string whereClause ) : ObservableCollection
database AdoDataConnection Source database connection.
whereClause string Where filter clause.
Результат ObservableCollection

Load() публичный статический Метод

Loads OutputStreamDevice information as an ObservableCollection{T} style list.
public static Load ( AdoDataConnection database, IList keys ) : ObservableCollection
database AdoDataConnection to connection to database.
keys IList Keys of the measurement to be loaded from the datbase
Результат ObservableCollection

LoadKeys() публичный статический Метод

LoadKeys OutputStreamDevice information as an ObservableCollection{T} style list.
public static LoadKeys ( AdoDataConnection database, int outputStreamID, string sortMember = "", string sortDirection = "" ) : IList
database AdoDataConnection to connection to database.
outputStreamID int ID of the OutputStream to filter data.
sortMember string The field to sort by.
sortDirection string ASC or DESC for ascending or descending respectively.
Результат IList

Save() публичный статический Метод

Saves OutputStreamDevice information to database.
public static Save ( AdoDataConnection database, OutputStreamDevice outputStreamDevice ) : string
database AdoDataConnection to connection to database.
outputStreamDevice OutputStreamDevice Information about .
Результат string