Step 1: Create the database as per as your requirement
Step 2: Install the EF Core Power Tool in Visual studio like this
Step 3: Go to the solution explorer and right click on it then EF Power Tool then Reverse Engineer as given below image
Step 4: Select the database name like this
then click on OK
Step 5: Select all the required table which one we are going to use in application
Step 6: Now Select the namespace and context name like given below
Step 7 : Click on OK. Now this tool will generate the required model and context file in Data folder.