Data Source Wizard Pages
- 4 minutes to read
This document lists pages included in the Data Source Wizard along with classes defining presenters and page views corresponding to WinForms and WPF implementations.
All these pages are also included in the Report Wizard. This topic lists custom implementations of these pages wired specifically to the Report Wizard logic.
Wizard Structural Elements
The structural elements of the Data Source Wizard conform to the MVP (model-view-presenter) pattern and are set out in the following namespaces:
Models
The DevExpress.DataAccess.Wizard.Model namespace contains interfaces and classes providing the data source model functionality for the wizard.
Views
The DevExpress.DataAccess.Wizard.Views namespace contains interfaces identifying wizard page views.
The following namespaces contain default implementations of these interfaces depending on your application’s target platform:
WinForms: DevExpress.DataAccess.UI.Wizard.Views
The Report Wizard uses custom implementation for some of the views contained in the DevExpress.XtraReports.Wizards.Views namespace.
- WPF: DevExpress.Xpf.DataAccess.DataSourceWizard
Presenters
The DevExpress.DataAccess.Wizard.Presenters namespace contains Data Source Wizard page presenters.
The Report Wizard uses custom implementation for some of the presenters contained in the DevExpress.XtraReports.Wizards.Presenters namespace.
The following document sections describe presenters and views corresponding to specific Data Source Wizard pages as well as classes that accumulate intermediate settings of a data source during wizard execution.
Start Page
Wizard Page | Page Presenter | Page View Interface | Page View (WinForms) | Page View (WPF) |
---|---|---|---|---|
Select the Data Source Type | ChooseDataSourceTypePage |
IChooseDataSourceTypePageView | ChooseDataSourceTypePageView | ChooseDataSourceTypePage |
Connect to a Database
The SqlDataSourceModel class accumulates intermediate settings of a SQL data source.
Wizard Page | Page Presenter | Page View Interface | Page View (WinForms) | Page View (WPF) |
---|---|---|---|---|
Select a Data Connection | ChooseConnectionPage<TModel> | IChooseConnectionPageView | ChooseConnectionPageView | ChooseConnectionPage |
Specify a Connection String | ConnectionPropertiesPage<TModel> | IConnectionPropertiesPageView | ConnectionPropertiesPageView | ConnectionPropertiesPage |
Save the Connection String | SaveConnectionPage<TModel> | ISaveConnectionPageView | SaveConnectionPageView | SaveConnectionPage |
Wizard pages may vary depending on the wizard implementation your application uses.
The following wizard pages correspond to the default wizard implementation, which allows you to create multiple queries in one wizard run and create master-detail relationships at once:
Wizard Page
Page Presenter
Page View Interface
Page View (WinForms)
Page View (WPF)
Create a Query or Select a Stored Procedure (Multi-Query Version)
MultiQueryConfigurePage<TModel> (Data Source Wizard)
MultiQueryConfigureParametersPage<TModel> (Data Source Wizard)
The pages listed below correspond to the older wizard implementation where it is only possible to create a single query in one wizard run.
Wizard Page
Page Presenter
Page View Interface
Page View (WinForms)
Page View (WPF)
Create a Query or Select a Stored Procedure (Single-Query Version)
ConfigureQueryPage<TModel> (Data Source Wizard)
ConfigureSqlParametersPage<TModel> (Data Source Wizard)
To learn how to switch back to the older Report Wizard version, see the following examples online:
Connect to an Entity Framework Data Source
The EFDataSourceModel class accumulates intermediate settings of an Entity Framework data source.
Wizard Page | Page Presenter | Page View Interface | Page View (WinForms) | Page View (WPF) |
---|---|---|---|---|
ChooseEFConnectionStringPage<TModel> (Data Source Wizard) | ||||
ConfigureEFConnectionStringPage<TModel> (Data Source Wizard) | ||||
ConfigureEFStoredProceduresPage<TModel> (Data Source Wizard) | ||||
ChooseEFDataMemberPage<TModel> (Data Source Wizard) | ||||
ConfigureEFFiltersPage<TModel> (Data Source Wizard) |
Connect to an Object Data Source
The ObjectDataSourceModel class accumulates intermediate settings of an object data source.
Wizard Page | Page Presenter | Page View Interface | Page View (WinForms) | Page View (WPF) |
---|---|---|---|---|
ChooseObjectTypePage<TModel> (Data Source Wizard) | ||||
ChooseObjectMemberPage<TModel> (Data Source Wizard) | ||||
ObjectMemberParametersPage<TModel> (Data Source Wizard) | ||||
ChooseObjectBindingModePage<TModel> (Data Source Wizard) | ||||
ChooseObjectConstructorPage<TModel> (Data Source Wizard) | ||||
ObjectConstructorParametersPage<TModel> (Data Source Wizard) |
Connect to an Excel Data Source
The ExcelDataSourceModel class accumulates intermediate settings of an Excel data source.
Wizard Page | Page Presenter | Page View Interface | Page View (WinForms) | Page View (WPF) |
---|---|---|---|---|
ConfigureExcelFileColumnsPage<TModel> (Data Source Wizard) |