mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-20 23:19:36 +08:00
Update 人大金仓 database
This commit is contained in:
parent
b62a38e12a
commit
e3007cd5d7
@ -237,9 +237,16 @@ namespace SqlSugar
|
|||||||
return "serial";
|
return "serial";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Methods
|
#region Methods
|
||||||
|
|
||||||
|
public override bool IsAnyTable(string tableName, bool isCache = true)
|
||||||
|
{
|
||||||
|
var sql = $"select count(*) from information_schema.tables where table_schema='public' and table_type='BASE TABLE' and UPPER(table_name)='{tableName.ToUpper()}'";
|
||||||
|
return this.Context.Ado.GetInt(sql)>0;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///by current connection string
|
///by current connection string
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user