diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs index 29787a86f..7560cdcd5 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs @@ -18,7 +18,7 @@ namespace SqlSugar public void InitTables(Type type) { - var isSplitEntity = type.GetCustomAttributes() != null; + var isSplitEntity = type.GetCustomAttribute() != null; if (isSplitEntity) { _InitTables(type);