Hidden columns are scaffolded for Azure databases #14566
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Same problem as #8192, but for Azure SQL Databases. When scaffolding an Azure SQL Databases to EF Core, Hidden Columns are not excluded. As a result, columns used for SQL Temporal Tables get scaffolded back into the application.
From what I can see in the current implementation, the Temporal Tables feature detection is based on the server version (13 / SQL Server 2016). This is a problem for Azure databases, which run on an engine based on SQL Server 2014, but have can have an higher compatibility level (i.e. SQL Server 2017).
Steps to reproduce
Add Temporal System Versioning on an Azure database, then run Scaffold-DbContext from that database.
The text was updated successfully, but these errors were encountered: