簡體   English   中英

DbContext 腳手架

[英]DbContext scaffolding

Scaffold-DbContext '數據源=""; 數據庫=""; 用戶 ID="";Password="";TrustServerCertificate=Yes' Microsoft.EntityFrameworkCore.SqlServer -OutputDir 模型

運行此命令時出現以下錯誤:

ClientConnectionId:f433cc07-6534-4bb4-ad0e-eab15d75ed67 錯誤號:207,State:1,Class:16 列名“has_filter”無效。 列名“filter_definition”無效。

EF Core 不支持 SQL Server 2005 或兼容級別低於 110 的數據庫。升級到受支持的版本或更改兼容級別:

ALTER DATABASE database_name SET COMPATIBILITY_LEVEL = 110

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM