Chapter 11. SQL Persistence
In this chapter, you'll build a simple WPF application that is used to enter sales leads. The leads will be persisted to a SQL database, and any existing leads will be loaded from the database when the application is restarted.
Creating the Application
Start by creating a Windows Presentation Foundation (WPF) project as shown in Figure 11-1. For the project name, enter LeadGenerator, and for the solution enter Chapter11.
Figure 11-1. Creating a WPF application project
Renaming the Window
The template will generate a window form named MainWindow.xaml
. Rename this file to AddLead.xaml. Open the App.xaml
file and change the ...
Get Beginning WF: Windows Workflow in .NET 4.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.