Table of Contents

Class DB2ConnectionDataProvider

Namespace
combit.Reporting.DataProviders
Assembly
combit.ListLabel31.CrossPlatform.dll
[Serializable]
public sealed class DB2ConnectionDataProvider : DbConnectionDataProvider, IDataProvider, ICanHandleUsedIdentifiers, IDisposable, ISupportsLogger, ISerializable
Inheritance
DB2ConnectionDataProvider
Implements
Inherited Members

Constructors

DB2ConnectionDataProvider(string)

Initializes a new instance of the DB2ConnectionDataProvider class using the specified connection string.

public DB2ConnectionDataProvider(string connectionString)

Parameters

connectionString string

The connection string for the DB2 database.

DB2ConnectionDataProvider(string, ReadOnlyCollection<string>)

Initializes a new instance of the DB2ConnectionDataProvider class using the specified connection string and table schemas.

public DB2ConnectionDataProvider(string connectionString, ReadOnlyCollection<string> tableSchemas)

Parameters

connectionString string

The connection string for the DB2 database.

tableSchemas ReadOnlyCollection<string>

A read-only collection of table schemas to include.

DB2ConnectionDataProvider(string, string)

Initializes a new instance of the DB2ConnectionDataProvider class using the specified connection string and a single table schema.

public DB2ConnectionDataProvider(string connectionString, string tableSchema)

Parameters

connectionString string

The connection string for the DB2 database.

tableSchema string

The table schema to include.

Properties

PrefixTableNameWithSchema

Gets or sets a value indicating whether to prefix table names with their schema.

public bool PrefixTableNameWithSchema { get; set; }

Property Value

bool

SupportedElementTypes

Gets or sets the supported DbConnectionElementTypes for the database connection.

public DbConnectionElementTypes SupportedElementTypes { get; set; }

Property Value

DbConnectionElementTypes

Remarks

This property indicates which element types (tables, views) are supported by this data provider.

SupportsAdvancedFiltering

Gets or sets a value indicating whether advanced filtering is supported by the data provider.

public override bool SupportsAdvancedFiltering { get; set; }

Property Value

bool

Methods

GetNativeAggregateFunctionName(NativeAggregateFunction)

Gets the native aggregate function name for the specified aggregate function.

protected override string GetNativeAggregateFunctionName(NativeAggregateFunction functionInstance)

Parameters

functionInstance NativeAggregateFunction

The native aggregate function.

Returns

string

The corresponding DB2 aggregate function name.

Init()

Initializes the data provider by retrieving table and relation metadata from the DB2 database.

protected override void Init()

OnTranslateFilterSyntax(object, TranslateFilterSyntaxEventArgs)

Raises the TranslateFilterSyntax event.

protected override void OnTranslateFilterSyntax(object sender, TranslateFilterSyntaxEventArgs e)

Parameters

sender object

The source of the event.

e TranslateFilterSyntaxEventArgs

A TranslateFilterSyntaxEventArgs that contains the event data.