Table of Contents

Method AddDataSource

Namespace
ReportWright.Design
Assembly
ReportWright.Design.dll

AddDataSource(string, string)

Adds a data source, as one entry. Its connect string stays empty: the host resolves the name.

public RdlElement AddDataSource(string name, string kind)

Parameters

name string

The name; made unique among data sources.

kind string

The provider kind (SQL, REST, JSON, ...).

Returns

RdlElement

The element.

Exceptions

ArgumentException

The name is not a valid RDL name, or the kind is empty.