我需要在asp.net core,appsettings.json
中为sa用户获取正确的连接字符串“DefaultConnection”:“Server =(LocalDB)\ MSSQLLocalDB; Database = CakeShop; Trusted_Connection = True; MultipleActiveResultSets = true”
答案 0 :(得分:2)
替换
Trusted_Connection=True;
带
User Id=sa;Password=*****;