Class DB2ConnectionDataProvider
- Namespace
- combit.Reporting.DataProviders
- Assembly
- combit.ListLabel31.CrossPlatform.dll
Provider for DB2, see https://www.ibm.com/support/pages/download-initial-version-115-clients-and-drivers. Tested with version 10.5.
[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
connectionStringstringThe 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
connectionStringstringThe connection string for the DB2 database.
tableSchemasReadOnlyCollection<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
connectionStringstringThe connection string for the DB2 database.
tableSchemastringThe 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
SupportedElementTypes
Gets or sets the supported DbConnectionElementTypes for the database connection.
public DbConnectionElementTypes SupportedElementTypes { get; set; }
Property Value
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
Methods
GetNativeAggregateFunctionName(NativeAggregateFunction)
Gets the native aggregate function name for the specified aggregate function.
protected override string GetNativeAggregateFunctionName(NativeAggregateFunction functionInstance)
Parameters
functionInstanceNativeAggregateFunctionThe 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
senderobjectThe source of the event.
eTranslateFilterSyntaxEventArgsA TranslateFilterSyntaxEventArgs that contains the event data.