Someone please explain this to me in a bit of detail [duplicate]
public class DataContext : DbContext {
public DataContext(DbContextOptions options) : base(options) { }
public DbSet<AppUser> Users { get; set; }
}
I know DataContext inherits from DbContext and Users
is a table name. But why am I writing public DataContext(DbContextOptions options) : base(options) { }
and what is DbContextOptions options
and why it is inheriting from base(options)
?
Comments
Post a Comment