diff --git a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpQueryBuilder.cs b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpQueryBuilder.cs index 8e604d6e3..d9e24c63a 100644 --- a/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpQueryBuilder.cs +++ b/Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/Kdbndp/SqlBuilder/KdbndpQueryBuilder.cs @@ -31,7 +31,7 @@ namespace SqlSugar #region Common Methods public override bool IsComplexModel(string sql) { - return Regex.IsMatch(sql, @"AS ""\w+\.\w+"""); + return Regex.IsMatch(sql, @"AS ""\w+\.\w+""")|| Regex.IsMatch(sql, @"AS ""\w+\.\w+\.\w+"""); } public override string ToSqlString() {