Services (w/ Entity Framework) - WPF MVVM TUTORIAL #6

Learn about implementing services in an MVVM application. In this case, a service is a class that performs business logic, typically via an external component. The services in this tutorial will interact with a database via Entity Framework. In this series, I demonstrate all the key components of a WPF MVVM application. This series will lay the foundations for building your own application. TIMESTAMPS: 0:00 - Introduction 1:04 - Entity Framework Setup 1:47 - Implementing the DbContext 2:59 - Creating DTOs 4:21 - Scaffolding the Database 7:42 - Implementing the ReservationProvider Service 10:33 - Implementing the ReservationCreator Service 12:27 - Using the Services in the Model 13:03 - Implementing the ReservationConflictValidator Service 15:42 - Updating the Setup 16:48 - Adding an AsyncCommand 18:35 - Loading Data Asynchronously 20:46 - Fixing the ReservationConflictValidator 22:45 - Conclusion SOURCE CODE:
Back to Top