mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-21 18:48:27 +08:00
Update 人大金仓 IsAnyColumn
This commit is contained in:
@@ -240,6 +240,12 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
public override bool IsAnyColumn(string tableName, string columnName, bool isCache = true)
|
||||
{
|
||||
var sql =
|
||||
$"select count(*) from information_schema.columns WHERE table_schema = 'public' and UPPER(table_name) = '{tableName.ToLower()}' and UPPER(column_name) = '{columnName.ToLower()}'";
|
||||
return this.Context.Ado.GetInt(sql) > 0;
|
||||
}
|
||||
|
||||
public override bool IsAnyTable(string tableName, bool isCache = true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user