DbSet<T> represents a collection of Entity Framework Core entities attached to a DbContext. An entity can correspond to a table or another database object, such as a view. section 5.2
Declaring and using a DbSet
Declare a typed property such as public DbSet<Book> Books { get; set; }. Add Book objects through the context, call SaveChanges, then query Books and order the results by Id. EF Core populates generated identifiers for saved records.


