Skip to content

Commit e00f7cc

Browse files
committed
fix RequestContext compatible with old versions
1 parent 119875d commit e00f7cc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

SmartSql/RequestContext.cs renamed to SmartSql/Abstractions/RequestContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Reflection;
66
using System.Text;
77

8-
namespace SmartSql
8+
namespace SmartSql.Abstractions
99
{
1010
/// <summary>
1111
/// Sql 请求上下文

SmartSql/SmartSql.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
<PackageProjectUrl>https://github.com/Ahoo-Wang/SmartSql</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/Ahoo-Wang/SmartSql</RepositoryUrl>
1212
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
13-
<Version>2.1.0.0-preview</Version>
13+
<Version>2.1.0.0-preview2</Version>
1414
<AssemblyVersion>2.1.0.0</AssemblyVersion>
1515
<FileVersion>2.1.0.0</FileVersion>
1616
<PackageTags>orm dapper sql read-write-separation cache redis dotnet-core cross-platform high-performance distributed-computing zookeeper</PackageTags>
17-
<PackageReleaseNotes>1. fixed cache invalidation problem after used DynamicParameters for RequestContext.Request .</PackageReleaseNotes>
17+
<PackageReleaseNotes>1. New support for [For Tag]</PackageReleaseNotes>
1818
</PropertyGroup>
1919
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
2020
<PackageReference Include="Dapper" Version="1.50.2" />

SmartSql/SqlMap/Tags/For.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using System.Text;
66
using System.Text.RegularExpressions;
77
using System.Linq;
8+
using SmartSql.Abstractions;
9+
810
namespace SmartSql.SqlMap.Tags
911
{
1012
public class For : Tag

0 commit comments

Comments
 (0)