This blog post WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET walks you through on how to build a WPF CRUD (Create/Update/Delete) project using the DataGrid control, MVVM Pattern, Entity Framework 6 and SQL Server as the data source from the ground up.

The necessary classes for the MVVM pattern such as ViewModelBase and RelayCommand are included in the tutorial.