Table of Contents

Class SimpleDataConnector

Namespace
Ranorex.Core.Data
Assembly
Ranorex.Core.dll

A simple data source that holds its data in memory. The data is loaded from and stored in the data source XML definition which allows to embed it into a test suite definition file.

public class SimpleDataConnector : DataConnector, IDisposable
Inheritance
SimpleDataConnector
Implements
Inherited Members

Constructors

SimpleDataConnector(XmlNode)

Initializes a new instance of the SimpleDataConnector class.

public SimpleDataConnector(XmlNode node)

Parameters

node XmlNode

An XML node containing the definition and data of the source.

SimpleDataConnector(string)

Initializes a new empty instance of the SimpleDataConnector class.

public SimpleDataConnector(string name)

Parameters

name string

The name of the source.

SimpleDataConnector(string, ColumnCollection, RowCollection)

Initializes a new empty instance of the SimpleDataConnector class.

public SimpleDataConnector(string name, ColumnCollection columCollection, RowCollection rowCollection)

Parameters

name string

The name of the source.

columCollection ColumnCollection

The Collection of the columns of this source.

rowCollection RowCollection

The RowCollection containing the data of this source.

SimpleDataConnector(string, string[], string[][])

Initializes a new instance of the SimpleDataConnector class.

public SimpleDataConnector(string name, string[] columnNames, string[][] rows)

Parameters

name string

The name of the source.

columnNames string[]

The name of the columns of this source.

rows string[][]

The rows containing the data of this source.

Properties

XmlIdentifier

Gets the unique identifier for serialization and deserialization purposes as well as factory creation.

public override string XmlIdentifier { get; }

Property Value

string

Methods

GetXMLNodeDerived(XmlNode)

Add DataSource specific information from derived classes to the node

protected override void GetXMLNodeDerived(XmlNode node)

Parameters

node XmlNode

The node to which information should be added.

LoadColumnsImpl(out ColumnCollection)

Loads the data columns from the source.

protected override void LoadColumnsImpl(out ColumnCollection columns)

Parameters

columns ColumnCollection

The loaded columns.

LoadDataImpl(out ColumnCollection, out RowCollection)

Gets the data from the source.

protected override void LoadDataImpl(out ColumnCollection columns, out RowCollection rows)

Parameters

columns ColumnCollection

The loaded columns.

rows RowCollection

The loaded rows.

StoreDataImpl(ColumnCollection, RowCollection)

Stores the data to the data source.

protected override void StoreDataImpl(ColumnCollection columns, RowCollection rows)

Parameters

columns ColumnCollection

The columns to store.

rows RowCollection

The rows to store.