DataConnectionBase.StoreConnectionNameOnly Property
Specifies whether to serialize any connection settings except for the data connection name.
Namespace: DevExpress.DataAccess
Assembly: DevExpress.DataAccess.v20.2.dll
NuGet Packages: DevExpress.DataAccess, DevExpress.WindowsDesktop.DataAccess
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.
Enable the DataConnectionBase.StoreConnectionNameOnly
property when you implement the IConnectionStorageService interface to serialize database connection names only. This behavior does not expose database credentials in report layout definitions.
When this property is disabled, the behavior depends on the SqlWizardSettings.DatabaseCredentialsSavingBehavior and IConnectionStorageService.CanSaveConnection property values.
Behavior | |
---|---|
| |
SensitiveInfoSavingBehavior.Always or SensitiveInfoSavingBehavior.Never | Users cannot specify whether or not to store database credentials with serialized layouts. After they select a connection or specify a new one, the Data Source Wizard displays the following page.
|