What is the best way to use MVVM Light and Entity framework ?
- I was create MVVM Light project.
- I was add entity DB to Model folder. (DB.edmx)
- I was add to MainWindow.xaml DataGrid and textbox.
- What is next step for example to show user name in textbox or all data in DataGrid?
Where I need add this logic?
dc.Employees.FirstOrDefault(s => s.EmployeesId == employeesId);
ordc.Employees()
I need use "Model" or "Modelview" folder to add my logic?
I found some tutorial, but there are too difficult logic 2 time need create GetEmployees and ect. http://www.dotnetcurry.com/wpf/1037/mvvm-light-wpf-model-view-viewmodel http://dotnetpattern.com/mvvm-light-toolkit-example