This is the next question from my previous question . I got the impression that if there is more than one table in the database, the variable name DbSet will be used to identify the table.
However, in a related question, it was clear that DbContext selected the Products table instead of the Portfolio table, even if the variable name was Portfolio . I can still change the name of the variable to everything, and I still get the data.
So my question is, how are tables mapped to a DbContext ? I need to add some more tables to the project and donβt know how to do this using a single DbContext object (or should I use a separate DbContext for individual tables in the same database)?
source share