From 9fd1c38802872971f116bba2d61ffef2cc3e715f Mon Sep 17 00:00:00 2001 From: luoyunchong Date: Thu, 16 Sep 2021 00:21:04 +0800 Subject: [PATCH] =?UTF-8?q?#882=20class=3D1=20=E5=8F=AA=E5=8F=96=20?= =?UTF-8?q?=E5=AF=B9=E8=B1=A1=E6=88=96=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Providers/FreeSql.Provider.SqlServer/SqlServerDbFirst.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Providers/FreeSql.Provider.SqlServer/SqlServerDbFirst.cs b/Providers/FreeSql.Provider.SqlServer/SqlServerDbFirst.cs index ec9a39d0b..828214f40 100644 --- a/Providers/FreeSql.Provider.SqlServer/SqlServerDbFirst.cs +++ b/Providers/FreeSql.Provider.SqlServer/SqlServerDbFirst.cs @@ -278,7 +278,7 @@ when b.name in ('nchar', 'nvarchar') then cast(a.max_length / 2 as varchar) else cast(a.max_length as varchar) end + ')' when b.name in ('numeric', 'decimal') then '(' + cast(a.precision as varchar) + ',' + cast(a.scale as varchar) + ')' else '' end as 'sqltype' -,( select value from sys.extended_properties where major_id = a.object_id AND minor_id = a.column_id AND name = 'MS_Description') 'comment' +,( select value from sys.extended_properties where major_id = a.object_id AND minor_id = a.column_id AND name = 'MS_Description' and class=1) 'comment' {0} a inner join sys.types b on b.user_type_id = a.user_type_id left join sys.tables d on d.object_id = a.object_id @@ -524,4 +524,4 @@ public List GetEnumsByDatabase(params string[] database) return new List(); } } -} \ No newline at end of file +}