I couldnt quite grasp the readonly and the CategoryController constructor here, what is the necessity of private readonly constructor and assigning _db = db. My ApplicationDbContext class inherits from EF Dbcontext class and the options parameter is passed to the base class, what does this private readonly and the constructor do here and whats its necessity? Image link : https://i.stack.imgur.com/oW8Zg.png
public class CategoryController : Controller
{
private readonly ApplicationDbContext _db;
public CategoryController(ApplicationDbContext db)
{
_db = db;
}