mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Synchronization code
This commit is contained in:
@@ -89,17 +89,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
if (IsPgModel())
|
return @"select table_name as name from information_schema.views where lower(table_schema) ='" + GetSchema() + "' ";
|
||||||
{
|
|
||||||
return @"select cast(relname as varchar) as Name,cast(Description as varchar) from pg_description
|
|
||||||
join pg_class on pg_description.objoid = pg_class.oid
|
|
||||||
where objsubid = 0 and relname in (SELECT viewname from pg_views
|
|
||||||
WHERE schemaname ='"+GetSchema()+"')";
|
|
||||||
}
|
|
||||||
return @"select cast(relname as varchar) as Name,cast(Description as varchar) from sys_description
|
|
||||||
join sys_class on sys_description.objoid = sys_class.oid
|
|
||||||
where objsubid = 0 and relname in (SELECT viewname from sys_views
|
|
||||||
WHERE schemaname ='"+GetSchema()+"')";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
Reference in New Issue
Block a user