Class FileSettingsStorage
File-based storage implementation for managing database connections and WebReportDesigner settings.
Inheritance
Namespace: Telerik.WebReportDesigner.Services
Assembly: Telerik.WebReportDesigner.Services.dll
Syntax
public class FileSettingsStorage : ISettingsStorage
Remarks
Provides combined access to database connection strings from both application configuration files and user-specific settings files, implementing the ISettingsStorage interface for centralized connection management.
Constructors
FileSettingsStorage(String)
Initializes a new instance of the FileSettingsStorage class with specified location for the designer settings file.
Declaration
public FileSettingsStorage(string settingsDirectory)
Parameters
|
System.String
settingsDirectory
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
AddConnection(ConnectionInfo)
Adds a new database connection to the user's application configuration file.
Declaration
public void AddConnection(ConnectionInfo connectionInfo)
Parameters
|
ConnectionInfo
connectionInfo
The connection information to add. |
Implements
Remarks
Persists the connection information to the user-specific settings file, making it available for future WebReportDesigner sessions and data source configurations.
GetConnections()
Retrieves all database connections from both application configuration and user settings.
Declaration
public IEnumerable<ConnectionInfo> GetConnections()
Returns
|
System.Collections.Generic.IEnumerable<ConnectionInfo>
A list of all connection string present in the project configuration. |
Implements
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.