Skip to content

Commit

Permalink
v1.8.2 - 升级依赖 FreeSql v3.2.808
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Dec 20, 2023
1 parent c1a0874 commit 226bd75
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions examples/net40_tcc_saga/net40_tcc_saga.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="FreeSql">
<Version>3.2.806</Version>
<Version>3.2.808</Version>
</PackageReference>
<PackageReference Include="FreeSql.Provider.Sqlite">
<Version>3.2.806</Version>
<Version>3.2.808</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion examples/net60_tcc_saga/net60_tcc_saga.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.2.806" />
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.2.808" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions examples/net60_webapi/net60_webapi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FreeSql.DbContext" Version="3.2.806" />
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.2.806" />
<PackageReference Include="FreeSql.Provider.PostgreSQL" Version="3.2.806" />
<PackageReference Include="FreeSql.Provider.Oracle" Version="3.2.806" />
<PackageReference Include="FreeSql.DbContext" Version="3.2.808" />
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.2.808" />
<PackageReference Include="FreeSql.Provider.PostgreSQL" Version="3.2.808" />
<PackageReference Include="FreeSql.Provider.Oracle" Version="3.2.808" />
<PackageReference Include="Rougamo.Fody" Version="1.1.2" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion examples/netcore31_tcc_saga/netcore31_tcc_saga.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.2.806" />
<PackageReference Include="FreeSql.Provider.Sqlite" Version="3.2.808" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/FreeSql.Cloud/FreeSql.Cloud.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard20;net40</TargetFrameworks>
<Version>1.8.1</Version>
<Version>1.8.2</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>FreeSql;ncc;YeXiangQin</Authors>
<Description>提供跨数据库访问,分布式事务TCC、SAGA解决方案,支持 .NET Core 2.1+, .NET Framework 4.0+.</Description>
Expand All @@ -22,12 +22,12 @@
</PropertyGroup>

<ItemGroup>
<None Include="../../readme.md" Pack="true" PackagePath="\"/>
<None Include="../../readme.md" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="FreeSql.DbContext" Version="3.2.806" />
<PackageReference Include="FreeScheduler" Version="1.1.0" />
<PackageReference Include="FreeSql.DbContext" Version="3.2.808" />
<PackageReference Include="FreeScheduler" Version="2.0.18" />
<PackageReference Include="IdleBus" Version="1.5.3" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
Expand Down
6 changes: 5 additions & 1 deletion src/FreeSql.Cloud/FreeSqlCloud.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ public FreeSqlCloud(string distributeKey)
if (string.IsNullOrWhiteSpace(DistributeKey)) DistributeKey = null;
_ib = new IdleBus<TDBKey, IFreeSql>(TimeSpan.FromMinutes(3));
_ib.Notice += (_, __) => { };
_dbkeyCurrent = new AsyncLocalAccessor<TDBKey>(() => _dbkeyMaster);
_dbkeyCurrent = new AsyncLocalAccessor<TDBKey>(() =>
{
if (typeof(TDBKey) == typeof(string) && _dbkeyMaster == null) return (TDBKey)typeof(TDBKey).FromObject("");
return _dbkeyMaster;
});
}

/// <summary>
Expand Down

0 comments on commit 226bd75

Please sign in to comment.