New to Telerik ReportingStart a free 30-day trial

File-based storage implementation for managing database connections and WebReportDesigner settings.

Definition

Namespace:Telerik.WebReportDesigner.Services

Assembly:Telerik.WebReportDesigner.Services.dll

Syntax:

C#
public class FileSettingsStorage : ISettingsStorage

Inheritance: objectFileSettingsStorage

Implements: ISettingsStorage

Constructors

Initializes a new instance of the FileSettingsStorage class with specified location for the designer settings file.

C#
public FileSettingsStorage(string settingsDirectory)
Parameters:settingsDirectorystring

The directory to keep the Web Report Designer settings

Remarks:

Creates a new settings storage instance that manages user-specific connection settings in the specified directory while also providing access to application configuration connections.

Methods

Adds a new database connection to the user's application configuration file.

C#
public void AddConnection(ConnectionInfo connectionInfo)
Parameters:connectionInfoConnectionInfo

The connection information to add.

Implements: ISettingsStorage.AddConnection(ConnectionInfo)

Remarks:

Persists the connection information to the user-specific settings file, making it available for future WebReportDesigner sessions and data source configurations.

Retrieves all database connections from both application configuration and user settings.

C#
public IEnumerable<ConnectionInfo> GetConnections()
Returns:

IEnumerable<ConnectionInfo>

A list of all connection string present in the project configuration.

Implements: ISettingsStorage.GetConnections()

Remarks:

Combines connections from the application's configuration file with user-specific connections stored in the settings directory, providing a unified view of all available database connections.