Table of Contents

Class DataAdapterBase

Namespace
MES.MQC.DataSourceLibrary.Adapters
Assembly
MES.MQC.DataSourceLibrary.dll
public abstract class DataAdapterBase : AdapterBase
Inheritance
DataAdapterBase
Derived
Inherited Members

Properties

DataSource

The Data Source of the Adapter. If a report file contains data from multiple data sources, this property has to be to "Unknown" and the DataSource of each AdapterData object has to be defined.

public virtual string DataSource { get; }

Property Value

string

Methods

ThrowWarningForEmptyDataProperty(AdapterDataBase, ContextBase, string, string)

protected void ThrowWarningForEmptyDataProperty(AdapterDataBase adapterDataBase, ContextBase context, string propertyName, string value)

Parameters

adapterDataBase AdapterDataBase
context ContextBase
propertyName string
value string

TransformStringToDateTime(string)

TransformStringToValue is a Utility method. Parse a string value to a DateTime.

protected DateTime? TransformStringToDateTime(string value)

Parameters

value string

Date as string

Returns

DateTime?

Datetime transformed from the string or null, if string was not a valid datetime

TransformStringToValue(string)

TransformStringToValue is a Utility method. Parse a string value to a double value in a culture independent (invariant) way.

protected static double? TransformStringToValue(string value)

Parameters

value string

Returns

double?