这是我的 azure 数据库的连接字符串:
Server=tcp:linkofy.database.windows.net,1433;Initial Catalog=Linkofy;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
我的.NET数据库连接字符串是:
Data Source=|DataDirectory|Linkofy-Release.sdf
在打包/发布 SQL 中,我是否只需使用我的用户名和密码将我的 azure 连接字符串添加到目标数据库,这会将我的数据库上传到 azure 吗?
我的 web.config 转换连接字符串会是什么?
最佳答案
我会自己将数据库升级到 Azure。我建议您查看Data Migration Assistant.
进入 Azure 后,您可以使用 Azure App service App Settings指定the connection string您的应用程序应该使用 web.config 转换而不是。
关于c# - .NET Azure 数据库上传,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48668856/