c# - 将 SQL Server 2012 指定为目标平台的项目可能会遇到与 Microsoft Azure SQL 数据库 v12 的兼容性问题

标签 c# entity-framework azure ef-code-first visual-studio-2017

当我尝试将我的代码优先项目发布到 Azure 时,它​​向我显示此警告:

Warning : A project which specifies SQL Server 2012 as the target platform may experience compatibility issues with Microsoft Azure SQL Database v12.

如何更改目标平台?

我用谷歌搜索过,但我发现的是数据项目等的 sql 项目。

最佳答案

@David Browne 的链接指向答案,直接引用他的链接:

To change a project’s target platform

Right-click your project in Solution Explorer and select Properties. Click the Project Settings tab on the left to access the Project Settings property page.

The Target platform dropdown list in this page contains all the supported SQL Server platforms that a database project can be published to. For this procedure, select SQL Azure.

当然,对于这个特定的警告,您需要选择: Microsoft Azure SQL 数据库 V12

关于c# - 将 SQL Server 2012 指定为目标平台的项目可能会遇到与 Microsoft Azure SQL 数据库 v12 的兼容性问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46181341/

相关文章:

linq - 仅获取日期时间的时间

c# - 无法将 List<> 对象序列化/反序列化为 JSON

c# - 无法解析非可选依赖项

c# - 从 C# 中查找允许用户更改打印机的 Excel 打印预览对话框

entity-framework - EF6 代码首先复数表无效的对象名称

c# - 默认情况下 dbo 架构中的 EF 6 Code First __MigrationHistory

sql - 经典 ASP、SQL Server、Windows Azure、单选按钮 UPDATE SET 命令 - 意外行为

azure - Az Powershell 命令不适用于 "Cloud service (classic)"

azure - 使用 SignalR Hub 交换 Azure 暂存/生产环境

c# - 在 C# 中,如何删除被另一个进程锁定的文件?