Skip to content

Commit 6c8644d

Browse files
committed
1. fixed DataSourceFilter error
1 parent 12b12ce commit 6c8644d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/SmartSql/DataSourceFilter.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ private IDataSource GetDataSource(DataSourceChoice sourceChoice)
4242
IDataSource choiceDataSource = _smartSqlContext.Database.WriteDataSource;
4343
var readDataSources = _smartSqlContext.Database.ReadDataSources;
4444
if (sourceChoice == DataSourceChoice.Read
45+
&& readDataSources != null
4546
&& readDataSources.Count > 0
4647
)
4748
{

src/SmartSql/SmartSql.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<PackageProjectUrl>https://github.com/Ahoo-Wang/SmartSql</PackageProjectUrl>
1212
<RepositoryUrl>https://github.com/Ahoo-Wang/SmartSql</RepositoryUrl>
1313
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
14-
<Version>3.5.12</Version>
14+
<Version>3.5.13</Version>
1515
<PackageTags>orm sql read-write-separation cache redis dotnet-core cross-platform high-performance distributed-computing zookeeper</PackageTags>
1616
<PackageReleaseNotes>
17-
1. fixed Tag.For NotDirectValue bug
17+
1. fixed DataSourceFilter error
1818
</PackageReleaseNotes>
1919
<PackageIconUrl>https://raw.githubusercontent.com/Ahoo-Wang/SmartSql/master/SmartSql.png</PackageIconUrl>
2020
<PackageLicenseUrl>https://raw.githubusercontent.com/Ahoo-Wang/SmartSql/master/LICENSE</PackageLicenseUrl>

0 commit comments

Comments
 (0)