FileSettingsStorage
File-based storage implementation for managing database connections and WebReportDesigner settings.
Definition
Namespace:Telerik.WebReportDesigner.Services
Assembly:Telerik.WebReportDesigner.Services.dll
Syntax:
public class FileSettingsStorage : ISettingsStorage
Inheritance: objectFileSettingsStorage
Implements:
Constructors
Initializes a new instance of the FileSettingsStorage class with specified location for the designer settings file.
public FileSettingsStorage(string settingsDirectory)
The directory to keep the Web Report Designer settings
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.
public void AddConnection(ConnectionInfo connectionInfo)
The connection information to add.
Implements:
Persists the connection information to the user-specific settings file, making it available for future WebReportDesigner sessions and data source configurations.
GetConnections()
IEnumerable<ConnectionInfo>
Retrieves all database connections from both application configuration and user settings.
public IEnumerable<ConnectionInfo> GetConnections()
IEnumerable<ConnectionInfo>
A list of all connection string present in the project configuration.
Implements:
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.