O'Reilly logo

Beginning WF: Windows Workflow in .NET 4.0 by Mark Collins

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Creating a WPF application project

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required