DataConnectionBase.StoreConnectionNameOnly Property
Specifies whether to serialize any connection settings except for the data connection name.
Namespace: DevExpress.DataAccess
Assembly: DevExpress.DataAccess.v18.2.dll
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, to store only the name of a data connection; otherwise, false. |
Remarks
When this option is enabled, the connection parameters are restored from the application configuration file by using the deserialized connection name.
To always serialize only database connection names, set the DataConnectionBase.StoreConnectionNameOnly
property to true. This will guarantee that the database credentials are never exposed in report layout definitions.
When this property is set to false (the default value), the resulting behavior depends on the settings defined for the SqlWizardSettings.DatabaseCredentialsSavingBehavior and IConnectionStorageService.CanSaveConnection properties.
Behavior | |
---|---|
| |
SensitiveInfoSavingBehavior.Always or SensitiveInfoSavingBehavior.Never | End-users cannot specify whether or not the database credentials will be stored along with serialized layouts, which depends on the specified DatabaseCredentialsSavingBehavior setting. After an existing connection is selected (or a new one is specified), the Data Source wizard displays the following page.
|