Method AddShared
- Namespace
- ReportWright.Data
- Assembly
- ReportWright.Data.Abstractions.dll
AddShared(string, ResolvedDataSource, string?)
Adds a shared data source: one connection many reports reference by name, as Reporting Services' shared data
sources are. A report's DataSourceReference resolves to it whether it states the bare name
(SalesDb) or a server path ending in it (/Data Sources/SalesDb); a shared reference wins over
the report's own data source name.
public StaticDataSourceResolver AddShared(string reference, ResolvedDataSource source, string? description = null)
Parameters
referencestringThe shared data source's name.
sourceResolvedDataSourceWhat it connects to.
descriptionstringWhat it is, for a person choosing it, or null.
Returns
- StaticDataSourceResolver
This resolver.