EfCore连接字符串

连接字符串中添加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"
  }
}

上一篇:Flink集成Hive之Hive Catalog与Hive Dialect


下一篇:数据库子查询