Skip to content

Commit 6c7ee22

Browse files
committed
fixed Ignore Tables
1 parent e65e80c commit 6c7ee22

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/SmartCode.CLI/SmartCode.CLI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<RepositoryType>Github</RepositoryType>
2121
<PackageTags>SmartCode SmartSql</PackageTags>
2222
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
23-
<Version>1.3.2</Version>
23+
<Version>1.3.4</Version>
2424
<PackageIconUrl>https://raw.githubusercontent.com/Ahoo-Wang/SmartCode/master/doc/Logo.png</PackageIconUrl>
2525
</PropertyGroup>
2626

src/SmartCode.Db/BuildTasks/AbstractBuildTask.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,22 @@ protected IEnumerable<Table> FilterTable(IEnumerable<Table> tables, string build
3737
if (build.IgnoreNoPKTable)
3838
{
3939
_logger.LogInformation($"FilterTable Build:{buildKey} IgnoreNoPKTable!");
40-
buildTables = tables.Where(m => m.PKColumn != null);
40+
buildTables = buildTables.Where(m => m.PKColumn != null);
4141
}
4242
if (build.IgnoreView)
4343
{
4444
_logger.LogInformation($"FilterTable Build:{buildKey} IgnoreView!");
45-
buildTables = tables.Where(m => m.Type != Table.TableType.View);
45+
buildTables = buildTables.Where(m => m.Type != Table.TableType.View);
4646
}
4747
if (build.IgnoreTables != null)
4848
{
4949
_logger.LogInformation($"FilterTable Build:{buildKey} IgnoreTables: [{String.Join(",", build.IgnoreTables)}]!");
50-
buildTables = tables.Where(m => !build.IgnoreTables.Contains(m.Name));
50+
buildTables = buildTables.Where(m => !build.IgnoreTables.Contains(m.Name));
5151
}
5252
if (build.IncludeTables != null)
5353
{
5454
_logger.LogInformation($"FilterTable Build:{buildKey} IncludeTables: [{String.Join(",", build.IncludeTables)}]!");
55-
buildTables = tables.Where(m => build.IncludeTables.Contains(m.Name));
55+
buildTables = buildTables.Where(m => build.IncludeTables.Contains(m.Name));
5656
}
5757
_logger.LogInformation($"FilterTable Build:{buildKey} End!");
5858
return buildTables;

0 commit comments

Comments
 (0)