Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good example of combining WPF + WCF + Entity Framework [closed]

I am planning on creating a new data-driven Client/Server application with the flexibility to have WPF, Silverlight, and mobile clients. I am already well versed in WPF and need to learn how to implement the back end. Everything I've read is pointing me toward using WCF + Entity Framework.

I have yet to find a realistic example of combining these three technologies. I want to use WPF's databinding to be able to easily bind to database objects in a way that avoids as much procedural code as possible.

I looked at this example based on Prism but it looks like it was never finished, it doesn't really do anything, it's basically a glorified "Hello World!"

like image 638
Trevor Elliott Avatar asked May 29 '12 20:05

Trevor Elliott


People also ask

What is a WCF service?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application.

What is WPF project?

Windows Presentation Foundation is a UI framework that creates desktop client applications. The WPF development platform supports a broad set of application development features, including an application model, resources, controls, graphics, layout, data binding, documents, and security.

Is it possible to use Entity framework with Web Services and WCF?

In order to use the latest version of the Entity Framework 6 with WCF Services, you'll need to install the WCF Data Services Entity Framework Provider NuGet package.

What is WCF and WPF in asp net with example?

WCF = Windows Communication Foundation is used to build service-oriented applications. WPF = Windows Presentation Foundation is used to write platform-independent applications.


1 Answers

Have you looked at the walk through below which just include WPF + WCF + Entity Framework only:

http://msdn.microsoft.com/en-us/library/dd465161.aspx

In this walkthrough, you will create a WPF application that contains data-bound controls. The controls are bound to customer records that are encapsulated in a WCF Data Service. You will also add buttons that customers can use to view and update records.

This walkthrough illustrates the following tasks:

  1. Creating an Entity Data Model that is generated from data in the AdventureWorksLT sample database.
  2. Creating a WCF Data Service that exposes the data in the Entity Data Model to a WPF application.
  3. Creating a set of data-bound controls by dragging items from the Data Sources window to the WPF designer.
  4. Creating buttons that navigate forward and backward through customer records.
  5. Creating a button that saves changes to data in the controls to the WCF Data Service and the underlying data source.
like image 66
AvkashChauhan Avatar answered Oct 20 '22 23:10

AvkashChauhan