连接字符串中添加Initial Catalog=XieChengDB 初始化数据库的名称
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*",
"DbContext": {
"ConnectionString": "Data Source=MAGIC-C\\MSSQLSERVER01;User ID=sa;Password=666666+;Initial Catalog=XieChengDB;Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False"
}
}