SQL Joins
SQL Tables - migrating data
Abstract class
Interface
Scoping
o Public – any class has access
o Protected – inherited class has access
o Private – only same class has access
* Interface – public
* Abstract class – private, protected, public
Entity Framework
ORM (Object Relational Mapper) framework
* Makes it easier to work with databases using C# objects
* Abstracts away underlying database interactions
Key components
* DbContext – represents a session with the database
o Manages database connections, transactions
o Provides set of APIs for querying and interacting with data
* DbSet – represents a table
Provides a collection of entities
* Entities – represents objects that represent database records
o C# classes that represent objects in database
o Class properties == database columns
Best practices
* Managing lifespan of connection of DbContext
Authentication vs authorization
Authentication – verifying user login credentials
Authorization – verifying user permissions