'Understanding of Syntax public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
For DbContext Configuration , following code is being used.
My understand of the code is as below :
- In the ApplicationDbContext class constructor, We are passing a parameter of type DbContextOptions as options
But I fail to understand the meaning and purpose of using in this constructor call.
Request you to please help me.
public class ApplicationDbContext :DbContext
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options)
{
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
