Class FirebirdSQLDataProvider
- Namespace
- combit.Reporting.DataProviders
- Assembly
- combit.ListLabel31.CrossPlatform.FirebirdConnectionDataProvider.dll
Provider for FirebirdSQL, see https://www.firebirdsql.org/en/net-provider/
[Serializable]
public sealed class FirebirdSQLDataProvider : DbConnectionDataProvider, IDataProvider, ICanHandleUsedIdentifiers, IDisposable, ISupportsLogger, ISerializable
- Inheritance
-
FirebirdSQLDataProvider
- Implements
- Inherited Members
Remarks
The FirebirdSQLDataProvider class extends DbConnectionDataProvider to provide connectivity to FirebirdSQL databases using the .NET provider. It retrieves schema information from the database and builds commands for retrieving data. It also supports custom filter syntax translation and native aggregate function mapping.
Constructors
FirebirdSQLDataProvider(IDbConnection)
Initializes a new instance of the FirebirdSQLDataProvider class using the specified database connection.
public FirebirdSQLDataProvider(IDbConnection connection)
Parameters
connectionIDbConnectionAn IDbConnection instance representing a FirebirdSQL connection.
Properties
SupportedElementTypes
Gets or sets the supported element types (e.g. tables) for the database connection.
public DbConnectionElementTypes SupportedElementTypes { get; set; }
Property Value
SupportsAdvancedFiltering
Gets or sets a value indicating whether advanced filtering is supported by the 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 function)
Parameters
functionNativeAggregateFunctionThe aggregate function to be mapped.
Returns
- string
The native aggregate function name as used by FirebirdSQL, or
nullfor unsupported functions.
Init()
Initializes the data provider by retrieving table and relation schema information from the FirebirdSQL database.
protected override void Init()
Remarks
This method retrieves a list of tables from the system catalog and then builds commands to select all data from each table. It then retrieves relation information from the schema and adds relations accordingly. Custom filter syntax translation and native aggregate function mapping are also provided.
OnTranslateFilterSyntax(object, TranslateFilterSyntaxEventArgs)
Translates filter syntax from List & Label expressions to FirebirdSQL-specific syntax.
protected override void OnTranslateFilterSyntax(object sender, TranslateFilterSyntaxEventArgs e)
Parameters
senderobjectThe source of the filter translation request.
eTranslateFilterSyntaxEventArgsA TranslateFilterSyntaxEventArgs object that contains the event data.