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
namestringThe name; made unique among data sources.
kindstringThe provider kind (
SQL,REST,JSON, ...).
Returns
- RdlElement
The element.
Exceptions
- ArgumentException
The name is not a valid RDL name, or the kind is empty.