mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-16 16:50:41 +08:00
Update .net framework project
This commit is contained in:
parent
d54dd4088f
commit
2d516c90b4
@ -58,9 +58,11 @@ namespace SqlSugar
|
|||||||
var schema = GetSchema();
|
var schema = GetSchema();
|
||||||
return @"select cast(relname as varchar) as Name,
|
return @"select cast(relname as varchar) as Name,
|
||||||
cast(obj_description(relfilenode,'pg_class') as varchar) as Description from pg_class c
|
cast(obj_description(relfilenode,'pg_class') as varchar) as Description from pg_class c
|
||||||
|
inner join
|
||||||
|
pg_namespace n on n.oid = c.relnamespace and nspname='"+ schema + @"'
|
||||||
inner join
|
inner join
|
||||||
pg_tables z on z.tablename=c.relname
|
pg_tables z on z.tablename=c.relname
|
||||||
where relkind = 'r' and relname not like 'pg_%' and relname not like 'sql_%' and schemaname='"+ schema + "' order by relname";
|
where relkind = 'r' and relname not like 'pg_%' and relname not like 'sql_%' and schemaname='" + schema + "' order by relname";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
protected override string GetViewInfoListSql
|
protected override string GetViewInfoListSql
|
||||||
@ -70,7 +72,7 @@ namespace SqlSugar
|
|||||||
return @"select cast(relname as varchar) as Name,cast(Description as varchar) from pg_description
|
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
|
join pg_class on pg_description.objoid = pg_class.oid
|
||||||
where objsubid = 0 and relname in (SELECT viewname from pg_views
|
where objsubid = 0 and relname in (SELECT viewname from pg_views
|
||||||
WHERE schemaname ='public')";
|
WHERE schemaname ='"+GetSchema()+"')";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
@ -422,7 +424,7 @@ namespace SqlSugar
|
|||||||
and kcu.constraint_schema = tco.constraint_schema
|
and kcu.constraint_schema = tco.constraint_schema
|
||||||
and kcu.constraint_name = tco.constraint_name
|
and kcu.constraint_name = tco.constraint_name
|
||||||
where tco.constraint_type = 'PRIMARY KEY'
|
where tco.constraint_type = 'PRIMARY KEY'
|
||||||
and kcu.table_schema='public' and
|
and kcu.table_schema='{GetSchema()}' and
|
||||||
upper(kcu.table_name)=upper('{tableName.TrimEnd('"').TrimStart('"')}')";
|
upper(kcu.table_name)=upper('{tableName.TrimEnd('"').TrimStart('"')}')";
|
||||||
List<string> pkList = new List<string>();
|
List<string> pkList = new List<string>();
|
||||||
if (isCache)
|
if (isCache)
|
||||||
|
Loading…
Reference in New Issue
Block a user