mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Update .net core
This commit is contained in:
@@ -331,10 +331,17 @@ namespace SqlSugar
|
|||||||
return result > 0;
|
return result > 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (isCache)
|
||||||
{
|
{
|
||||||
return base.IsAnyTable(tableName, isCache);
|
return base.IsAnyTable(tableName, isCache);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
var sql = @"IF EXISTS (SELECT * FROM sys.objects
|
||||||
|
WHERE type='u' AND name='"+tableName.ToSqlFilter()+@"')
|
||||||
|
SELECT 1 AS res ELSE SELECT 0 AS res;";
|
||||||
|
return this.Context.Ado.GetInt(sql) > 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public List<string> GetSchemas()
|
public List<string> GetSchemas()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user