使用EFCore需要引用 通过数据库生成实体,使用powershell输入: Scaffold-DbContext -Force “Data Source=59.110.21.214; Initial Catalog=test_DEV; Persist Security Info=True; User ID=sa; Password=123;” Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models/DataModels