Click here to Skip to main content
15,888,301 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Can anyone provide an example, or point  me to a walkthrough? 
I need clarification on how to make a sql table(SQL Express) using code first approach in entity framework model and:(add, edit, save & delete) in that table, and to do that using MVVM pattern, in a WPF application. 
Specifically I am facing a problem in trying to create the database using the c# code in the wpf application

I would really appreciate advice.


What I have tried:

i have tried to create the wpf application for existing database using database first approach but i am having doubts while trying to convert that to MVVM pattern
Posted
Updated 3-Jul-19 21:46pm

1 solution

This is not really a question for a "quick" answers forum, however try the following material.

Code First to a New Database - EF6 | Microsoft Docs[^]
Simple Code-First Example[^]
https://developerhandbook.com/entity-framework/wpf-entity-framework-code-first-migrations-in-a-production-environment/[^]

I found all of the above with a simple Google[^] search.
 
Share this answer
 

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