Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
As there is scaffolding in mvc which generates crud operations automatically from entity framework. I just want to repeat my work but this time for WPF. How can i get these automatically generated crud operations for my entity framework in wpf....
Posted

1 solution

Entity framework is a separate framework and is not connected to, or dependant on either ASP.NET MVC or WPF. You can use it in both, their data binding and other techniques are also different you may want to conceptualize them from beginning.

Entire flow of what you have to do is provided here: https://msdn.microsoft.com/en-us/data/jj574514.aspx?f=255&MSPPError=-2147217396[^]. It doesn't only teach you how to get started, but the example also shows you how to build an entire application, beginning from adding Entity framework to your project all the way to binding the data to Entity framework.

As far as those CRUD operations are concerned, Entity framework doesn't create them. Visual Studio does. You select to "Create a new MVC Controller with Entity Framework CRUD" (something like that), that option generates CRUD functions for you. Entity framework only maps your data in between the data source and the application.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900