1. 创建 EFCoreApp项目 使用 VS2019 新建 net core App 空项目, 其项目配置如下: <Project Sdk="Microsoft.NET.Sdk.WindowsDesktop"> <PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>netcoreapp3.1</TargetFramework> <UseWPF>true</UseW