Table of Contents

Class NuoDbConnectionDataProvider

Namespace
combit.Reporting.DataProviders
Assembly
combit.ListLabel31.CrossPlatform.NuoDBConnectionDataProvider.dll

Provides a data provider implementation for NuoDB databases.

[Serializable]
public sealed class NuoDbConnectionDataProvider : DbConnectionDataProvider, IDataProvider, ICanHandleUsedIdentifiers, IDisposable, ISupportsLogger, ISerializable
Inheritance
NuoDbConnectionDataProvider
Implements
Inherited Members

Examples

The following example demonstrates how to use the NuoDbConnectionDataProvider to export a report to PDF:

// Create a NuoDbConnectionDataProvider using a connection string.
NuoDbConnectionDataProvider provider = new NuoDbConnectionDataProvider("your connection string here");

// Create a ListLabel reporting engine instance and assign the provider as the data source.
using ListLabel listLabel = new ListLabel();
listLabel.DataSource = provider;

// Configure export settings to generate a PDF.
ExportConfiguration exportConfiguration = new ExportConfiguration(LlExportTarget.Pdf, exportFilePath, projectFilePath);
exportConfiguration.ShowResult = true;

// Export the report to PDF.
listLabel.Export(exportConfiguration);

Remarks

The NuoDbConnectionDataProvider class extends DbConnectionDataProvider to provide connectivity to NuoDB distributed SQL databases using the NuoDB .NET Data Provider. It supports tables and views, advanced filtering, and schema-aware query construction. The provider retrieves schema information including tables, views, and foreign key relationships, and supports custom filter syntax translation for List & Label expressions.

Constructors

NuoDbConnectionDataProvider(NuoDbConnection)

public NuoDbConnectionDataProvider(NuoDbConnection connection)

Parameters

connection NuoDbConnection

NuoDbConnectionDataProvider(string)

public NuoDbConnectionDataProvider(string connectionString)

Parameters

connectionString string

Properties

SupportedElementTypes

public DbConnectionElementTypes SupportedElementTypes { get; set; }

Property Value

DbConnectionElementTypes

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 given aggregate function instance. Override this method to return null if the function is not supported by the data provider.

protected override string GetNativeAggregateFunctionName(NativeAggregateFunction function)

Parameters

function NativeAggregateFunction

Returns

string

The native aggregate function name as a string; by default, the function name is returned in upper case.

Init()

When implemented in a derived class, initializes the data provider.

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.