mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 20:57:58 +08:00
-
This commit is contained in:
parent
64e59cda87
commit
ff42d1f9d3
@ -12,7 +12,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
string sql = @"SELECT Sysobjects.name AS TableName,
|
string sql = @"SELECT sysobjects.name AS TableName,
|
||||||
syscolumns.Id AS TableId,
|
syscolumns.Id AS TableId,
|
||||||
syscolumns.name AS DbColumnName,
|
syscolumns.name AS DbColumnName,
|
||||||
systypes.name AS DataType,
|
systypes.name AS DataType,
|
||||||
@ -60,7 +60,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
||||||
FROM sysobjects s
|
FROM sysobjects s
|
||||||
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 WHERE s.xtype IN('U') AND (tbp.Name='MS_Description' OR tbp.Name is null)";
|
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 AND (tbp.Name='MS_Description' OR tbp.Name is null) WHERE s.xtype IN('U') ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected override string GetViewInfoListSql
|
protected override string GetViewInfoListSql
|
||||||
@ -69,7 +69,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
|
||||||
FROM sysobjects s
|
FROM sysobjects s
|
||||||
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 WHERE s.xtype IN('V') AND (tbp.Name='MS_Description' OR tbp.Name is null)";
|
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 AND (tbp.Name='MS_Description' OR tbp.Name is null) WHERE s.xtype IN('V') ";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user