diff --git a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs index 4fef2b78a..a7c3db05e 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/SqlBuilderProvider.cs @@ -160,6 +160,7 @@ namespace SqlSugar } string oldName = item.FieldName; item.FieldName = GetTranslationColumnName(item.FieldName); + Check.Exception(item.FieldName.Contains("--"), "Field name is error format"); switch (item.ConditionalType) { case ConditionalType.Equal: