Table of Contents

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

reference string

The shared data source's name.

source ResolvedDataSource

What it connects to.

description string

What it is, for a person choosing it, or null.

Returns

StaticDataSourceResolver

This resolver.