Authentication and Authorization - Registration Part 2


I finished! On to the next chapter


DB Context

Most important class in Entity Framework. It's the bridge between your domain or entity classes and the database. Its primary responsibility is to interact with the database.

It will:

  • Produce SQL Queries to fetch data
  • Performs persisting functions such as:
    • Inserting
    • Updating
    • Deleting
  • Enables Linq & Lambda Expressions to easily
    • Filter
    • Sort
  • Keeps track of changes in the data
  • It also acts as a first level caching layer by keeping objects in memory for the life of the DB Context.

In the next video we'll begin putting the DB Context together