Show / Hide Table of Contents

Class DataItemReader

Responsible for retrieving data items across all sessions in SQL Race.

Inheritance
System.Object
DataItemReader
Namespace: MESL.SqlRace.Domain
Assembly: MESL.SqlRace.Domain.dll
Syntax
public class DataItemReader : Object
Remarks

Data items are added to SQL Sace using the Items collection. These items are added and related to a specific session.

This class allows you to retrieve data item names, data items by name or all data items across all sessions in SQL Race. This is more effecient than loading all sessions and reading these values from each session.

DataItem

Methods

CreateDataItemReader()

Creates the data item reader.

Declaration
public static DataItemReader CreateDataItemReader()
Returns
Type Description
DataItemReader

A instance of the DataItemReader

GetItems(ConnectionInformationBase)

Gets all the data items.

Declaration
public List<DataItem> GetItems(ConnectionInformationBase connectionInformation)
Parameters
Type Name Description
ConnectionInformationBase connectionInformation

The connection information.

Returns
Type Description
System.Collections.Generic.List<DataItem>

A list of data items.

GetItemsByName(ConnectionInformationBase, String)

Gets the data items by name.

Declaration
public List<DataItem> GetItemsByName(ConnectionInformationBase connectionInformation, string name)
Parameters
Type Name Description
ConnectionInformationBase connectionInformation

The connection information.

System.String name

The name of the data item.

Returns
Type Description
System.Collections.Generic.List<DataItem>

A list of data items.

GetNames(ConnectionInformationBase)

Gets all the data item names.

Declaration
public List<string> GetNames(ConnectionInformationBase connectionInformation)
Parameters
Type Name Description
ConnectionInformationBase connectionInformation

The connection information.

Returns
Type Description
System.Collections.Generic.List<System.String>

A list of data item names.

Back to top Generated by DocFX