mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 10:55:02 +08:00
Add constraints
This commit is contained in:
@@ -80,6 +80,7 @@ namespace SqlSugar
|
|||||||
#region Check
|
#region Check
|
||||||
public virtual bool IsAnyTable(string tableName, bool isCache = true)
|
public virtual bool IsAnyTable(string tableName, bool isCache = true)
|
||||||
{
|
{
|
||||||
|
Check.Exception(string.IsNullOrEmpty(tableName), "IsAnyTable tableName is not null");
|
||||||
tableName = this.SqlBuilder.GetNoTranslationColumnName(tableName);
|
tableName = this.SqlBuilder.GetNoTranslationColumnName(tableName);
|
||||||
var tables = GetTableInfoList(isCache);
|
var tables = GetTableInfoList(isCache);
|
||||||
if (tables == null) return false;
|
if (tables == null) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user