1. Tools - Extensions and Updates - Install the following plugins
2. As shown in the figure, add it under the project or MODEL folder
3. As shown in the figure, a datanase.11 is generated
4. After opening the file, change the database connection string to the connection string in WebCofig in your own project.
5. The parameter in the red box below - Settings.GenerateSeparateFiles: When it is false, the model code generated is all placed under the automatically generated Database1.cs file; if it is changed to true, it corresponds to the table in the database and generates a corresponding single model file .