net 结构的创建参考:https://blog.csdn.net/qq_33101689/article/details/107363465
创建数据模型时出现错误:
To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration
解决方式:
Scaffold-DbContext “Data Source=.;Initial Catalog=test;Encrypt=false;TrustServerCertificate=false;Persist Security Info=True;User ID=sa;Password=123” Microsoft.EntityFrameworkCore.SqlServer -OutputDir “Entities”