C# Class GSF.PhasorProtocols.UI.DataModels.Phasor

Represents a record of Phasor information as defined in the database.
Inheritance: DataModelBase
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Delete ( AdoDataConnection database, int phasorID ) : string

Deletes specified Phasor record from database.

GetLookupList ( AdoDataConnection database, int deviceID, bool isOptional = true ) : string>.Dictionary

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

GetPhasor ( AdoDataConnection database, string whereClause ) : Phasor

Retrieves Phasor information based on query string filter.

Load ( AdoDataConnection database, IList keys ) : ObservableCollection

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

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

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

Save ( AdoDataConnection database, Phasor phasor ) : string

Saves Phasor information to database.

SaveAndReorder ( AdoDataConnection database, Phasor phasor, int oldSourceIndex, bool skipMeasurementUpdate = false ) : string

Saves Phasor information to database.

SaveWithoutMeasurementUpdate ( AdoDataConnection database, Phasor phasor ) : string

Saves Phasor information to database and skips associated measurement update.

Method Details

Delete() public static méthode

Deletes specified Phasor record from database.
public static Delete ( AdoDataConnection database, int phasorID ) : string
database AdoDataConnection to connection to database.
phasorID int ID of the record to be deleted.
Résultat string

GetLookupList() public static méthode

Gets a Dictionary{T1,T2} style list of Phasor information.
public static GetLookupList ( AdoDataConnection database, int deviceID, bool isOptional = true ) : string>.Dictionary
database AdoDataConnection to connection to database.
deviceID int ID of the to filter data.
isOptional bool Indicates if selection on UI is optional for this collection.
Résultat string>.Dictionary

GetPhasor() public static méthode

Retrieves Phasor information based on query string filter.
public static GetPhasor ( AdoDataConnection database, string whereClause ) : Phasor
database AdoDataConnection to connection to database.
whereClause string query string to filter data.
Résultat Phasor

Load() public static méthode

Loads Phasor 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 phasors to be loaded from the database
Résultat ObservableCollection

LoadKeys() public static méthode

LoadKeys Phasor information as an ObservableCollection{T} style list.
public static LoadKeys ( AdoDataConnection database, int deviceID, string sortMember = "", string sortDirection = "" ) : IList
database AdoDataConnection to connection to database.
deviceID int ID of the to filter data.
sortMember string The field to sort by.
sortDirection string ASC or DESC for ascending or descending respectively.
Résultat IList

Save() public static méthode

Saves Phasor information to database.
public static Save ( AdoDataConnection database, Phasor phasor ) : string
database AdoDataConnection to connection to database.
phasor Phasor Information about .
Résultat string

SaveAndReorder() public static méthode

Saves Phasor information to database.
public static SaveAndReorder ( AdoDataConnection database, Phasor phasor, int oldSourceIndex, bool skipMeasurementUpdate = false ) : string
database AdoDataConnection to connection to database.
phasor Phasor Information about .
oldSourceIndex int The old source index of the phasor.
skipMeasurementUpdate bool Skips associated measurement update if this is already being handled.
Résultat string

SaveWithoutMeasurementUpdate() public static méthode

Saves Phasor information to database and skips associated measurement update.
public static SaveWithoutMeasurementUpdate ( AdoDataConnection database, Phasor phasor ) : string
database AdoDataConnection to connection to database.
phasor Phasor Information about .
Résultat string