From da62ed61ebfdaebec4771aed270756ceee388956 Mon Sep 17 00:00:00 2001 From: ErikEJ Date: Wed, 14 Sep 2022 08:34:36 +0200 Subject: [PATCH] Fix GetColumns formatting fixes #29078 --- .../Scaffolding/Internal/SqlServerDatabaseModelFactory.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/EFCore.SqlServer/Scaffolding/Internal/SqlServerDatabaseModelFactory.cs b/src/EFCore.SqlServer/Scaffolding/Internal/SqlServerDatabaseModelFactory.cs index e2a5e92ec5f..67aada2f9f7 100644 --- a/src/EFCore.SqlServer/Scaffolding/Internal/SqlServerDatabaseModelFactory.cs +++ b/src/EFCore.SqlServer/Scaffolding/Internal/SqlServerDatabaseModelFactory.cs @@ -683,9 +683,8 @@ private void GetColumns( [cc].[is_persisted] AS [computed_is_persisted], CAST([e].[value] AS nvarchar(MAX)) AS [comment], [c].[collation_name], - [c].[is_sparse]"; - - commandText += @"FROM + [c].[is_sparse] +FROM ( SELECT[v].[name], [v].[object_id], [v].[schema_id] FROM [sys].[views] v WHERE ";