The Entity Framework Dbcontext is a unit of work and important to understand.
- [Instructor] Now that we have the repository pattern,…we can discuss the unit of work.…It's a fundamental construct in the design…of Entity Framework, so it's important…to understand what it is and what it provides…to the application architecture.…It is defined by Martin Fowler in his book,…The Principles of Enterprise Architecture, this way.…"The unit of work maintains a list of objects affected…"by a business transaction and coordinates the writing…"out of changes and the resolution of concurrency problems."…A unit of work pattern, in general, is a way…to centralize database access for the purpose…of managing changes and dealing with concurrency issues.…
Within Entity Framework, this is the data context,…the HPlusSportsContext that we've already seen.…Let's have another look at the HPlusSportsContext…in our data layer now.…The first thing to remember is that the context is…where we found our DbSet repositories earlier.…The context is a container…for all the repositories we are using,…so that the actions against the database can be managed…
- What is good application architecture?
- Real-world software and the SDLC
- Common knowledge and maintenance
- Choosing an architecture
- Design patterns with EF
- Debugging and error handling
- Architecture for the web with ASP.NET
- Designing for unit testing
- Strategies for dealing with common performance issues
Skill Level Advanced
Deploying ASP.NET Core Applicationswith Nate Barbettini57m 57s Intermediate
Microsoft SQL Server 2016 Essential Trainingwith Martin Guidry3h 18m Intermediate
1. Why Do All of This Architecture?
2. Design Patterns with EF
3. Error Handling
4. Architecture for the Web with ASP.NET
5. Designing for Unit Testing
6. Entity Framework Mistakes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.