Skip to content

Commit

Permalink
#882 class=1 只取 对象或列
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyunchong committed Sep 15, 2021
1 parent 3b40296 commit 9fd1c38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Providers/FreeSql.Provider.SqlServer/SqlServerDbFirst.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -524,4 +524,4 @@ public List<DbEnumInfo> GetEnumsByDatabase(params string[] database)
return new List<DbEnumInfo>();
}
}
}
}

0 comments on commit 9fd1c38

Please sign in to comment.