SqlWizardSettings.DatabaseCredentialsSavingBehavior Property
Specifies whether or not to serialize database credentials along with document layouts (e.g., report or dashboards). Optionally, you can enable your end-users to select the required behavior.
Namespace: DevExpress.DataAccess.UI.Wizard
Assembly: DevExpress.DataAccess.v21.1.dll
NuGet Packages: DevExpress.DataAccess, DevExpress.Win.Design
Declaration
[DefaultValue(SensitiveInfoSavingBehavior.Never)]
public SensitiveInfoSavingBehavior DatabaseCredentialsSavingBehavior { get; set; }
Property Value
Type | Default | Description |
---|---|---|
SensitiveInfoSavingBehavior | **Never** | A SensitiveInfoSavingBehavior enumeration value. |
Available values:
Name | Description |
---|---|
Always | Database credentials are always serialized along with document layouts and end-users cannot change this behavior. |
Never | Database credentials are never serialized along with document layouts and end-users cannot change this behavior. |
Prompt | After an existing connection is selected (or a new one is specified), the Data Source wizard prompts an end-user whether or not to save database credentials along with the document layout. |
Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to DatabaseCredentialsSavingBehavior |
---|---|---|
Cross-Platform Class Library | DataSourceWizardSettings |
|
WinForms Controls | DataSourceWizardOptions |
|
Dashboard | DashboardDesigner |
|
DashboardDesignerDataSourceWizardSettings |
|
Remarks
Enable the DataConnectionBase.StoreConnectionNameOnly property when you implement the IConnectionStorageService interface to serialize database connection names only.
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:
|