Step 2: Adding an Existing Business Object Project

If you have an existing business object project you want to add to your WPF solution, follow these steps:


Note: If you are using a business object project created with a version prior to MM .NET 3.5, you may want to regenerate your entity objects so they implement the INotifyPropertyChanged interface. This functionality is necessary if you want to programmatically set the value of an entity property and have the user interface automatically notified/updated.

  1. In the Solution Explorer, right-click your solution (the first node in the tree) and select Add | Existing Project... from the shortcut menu.

  2. In the Add Existing Project dialog, select the existing business object project (.csproj or .vbproj), and then click the Open button:

    This adds the selected project to your solution.

  3. Beneath your WPF project node, right-click the References node and select Add Reference... from the shortcut menu (if you are using Visual Basic you may need to click the Show All Files button at the top of the Solution Explorer before you can see the References node).

  4. In the Add Reference dialog, select the Projects tab.

  5. Select the business object project, and then click OK to close the dialog and add the reference to the WPF project.

  6. Right-click the solution (the first node in the Solution Explorer) and select Project Dependencies... from the shortcut menu.

  7. In the Project Dependencies dialog, in the Dependencies tab select the WPF project in the Project combo box. Note that the selected check box next to the business object project in the Depends on list box. This indicates the WPF project depends on the Business Object project, so the Business Object project is always built first when you rebuild the solution.

    Click OK to close the dialog.


© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 05/22/17
Comment or report problem with topic