This example contains a data access layer generated with Entity Framework Database First. In this example, the blank sample project is connected to the Northwind database. You can find this database at the following path: /CS(VB)/WPFBlankAppWithDatabase/Northwind.mdf.
Database structure:
You can use this example to create DevExpress projects and explore our features.
We used the DevExpress Template Gallery to create this project, so it includes the DevExpress ThemedWindow as a root element. Refer to the Themes topic for more information about custom-designed themes.
To connect your project to a database:
-
Add the ADO.NET Entity Data Model to your project:
-
In the Entity Data Model Wizard select EF Designer from database:
-
Click New Connection.
-
Select the Microsoft SQL Server Database File as a data source and specify the path to a database file:
-
Connect to a database:
-
Select tables and views to include them in the model:
-
Set the database's Copy to Output Directory property to Copy if newer:
- WPF Data Grid - Getting Started (.NET Framework)
- WPF Blank .NET Core App with the Northwind Database
(you will be redirected to DevExpress.com to submit your response)