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

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept