Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wpf.md #2397

Merged
merged 1 commit into from
May 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions entity-framework/ef6/fundamentals/databinding/wpf.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
title: "Databinding with WPF - EF6"
author: divega
ms.date: "04/02/2020"
ms.date: "05/19/2020"
ms.assetid: e90d48e6-bea7785-47ef-b756-7b89cce4daf0
---
# Databinding with WPF

> [!IMPORTANT]
> **This document is valid for WPF on the .NET Framework only**
>
> This document describes databinding for WPF on the .NET Framework. For new .NET Core projects, we recommend you use [EF Core](/ef/core) instead of Entity Framework 6. The documentation for databinding in EF Core is tracked in [Issue #778](https://github.com/dotnet/EntityFramework.Docs/issues/778).

# Databinding with WPF
This step-by-step walkthrough shows how to bind POCO types to WPF controls in a “master-detail" form. The application uses the Entity Framework APIs to populate objects with data from the database, track changes, and persist data to the database.

The model defines two types that participate in one-to-many relationship: **Category** (principal\\master) and **Product** (dependent\\detail). Then, the Visual Studio tools are used to bind the types defined in the model to the WPF controls. The WPF data-binding framework enables navigation between related objects: selecting rows in the master view causes the detail view to update with the corresponding child data.
Expand Down