简体   繁体   中英

DbContext scaffolding

Scaffold-DbContext 'Data Source=""; Database=""; User Id="";Password="";TrustServerCertificate=Yes' Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models

while running this command i get the following error:

ClientConnectionId:f433cc07-6534-4bb4-ad0e-eab15d75ed67 Error Number:207,State:1,Class:16 Invalid column name 'has_filter'. Invalid column name 'filter_definition'.

EF Core does not support SQL Server 2005, or database with a compatibility level under 110. Upgrade to a supported version or alter the compatibility level:

ALTER DATABASE database_name SET COMPATIBILITY_LEVEL = 110

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM