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

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

Private Properties

Property Type Description

Public Methods

Method 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 method

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.
return string

GetLookupList() public static method

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.
return string>.Dictionary

GetPhasor() public static method

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.
return Phasor

Load() public static method

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
return ObservableCollection

LoadKeys() public static method

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.
return IList

Save() public static method

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

SaveAndReorder() public static method

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.
return string

SaveWithoutMeasurementUpdate() public static method

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 .
return string