mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Synchronization code
This commit is contained in:
@@ -272,6 +272,24 @@ namespace SqlSugar
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
public override bool IsAnyTable(string tableName, bool isCache = true)
|
||||
{
|
||||
if (isCache)
|
||||
{
|
||||
return base.IsAnyTable(tableName, isCache);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (tableName.Contains("\""))
|
||||
{
|
||||
tableName = SqlBuilder.GetNoTranslationColumnName(tableName);
|
||||
}
|
||||
return this.Context.Ado.GetInt(@"
|
||||
SELECT COUNT(table_name)
|
||||
FROM user_tables
|
||||
WHERE UPPER(table_name) = UPPER(@p)",new { p=tableName}) > 0;
|
||||
}
|
||||
}
|
||||
public override bool UpdateColumn(string tableName, DbColumnInfo column)
|
||||
{
|
||||
ConvertCreateColumnInfo(column);
|
||||
|
Reference in New Issue
Block a user