Add constraints

This commit is contained in:
skx 2020-12-17 12:52:21 +08:00
parent b0dda58bc6
commit 74bf3274cd

View File

@ -80,6 +80,7 @@ namespace SqlSugar
#region Check
public virtual bool IsAnyTable(string tableName, bool isCache = true)
{
Check.Exception(string.IsNullOrEmpty(tableName), "IsAnyTable tableName is not null");
tableName = this.SqlBuilder.GetNoTranslationColumnName(tableName);
var tables = GetTableInfoList(isCache);
if (tables == null) return false;