Table of Contents

Method DiscoverSchema

Namespace
ReportWright.Data
Assembly
ReportWright.Data.Abstractions.dll

DiscoverSchema(ReportDefinition, string, IDictionary<string, ReportParameterValue>?, CancellationToken)

Discovers the fields a dataset's query yields.

public DataSetSchema DiscoverSchema(ReportDefinition definition, string dataSetName, IDictionary<string, ReportParameterValue>? parameters, CancellationToken cancellationToken)

Parameters

definition ReportDefinition

The report.

dataSetName string

The dataset's name.

parameters IDictionary<string, ReportParameterValue>

Parameter values the query may read, or null.

cancellationToken CancellationToken

Cancels the discovery.

Returns

DataSetSchema

The schema, with a warning for every field the dataset declares that the source did not return.