Skip to content

Commit 6361a28

Browse files
feat:
+ Add ReturnType parameter SoftStoneDevelop/Gedaq#53
1 parent 6450c74 commit 6361a28

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

Src/Gedaq.Npgsql/Attributes/QueryAttribute.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public QueryAttribute(
1717
bool generate = true,
1818
AccessModifier accessModifier = AccessModifier.AsContainingClass,
1919
AsyncResult asyncResultType = AsyncResult.ValueTask,
20-
Type asPartInterface = null
20+
Type asPartInterface = null,
21+
ReturnType returnType = ReturnType.Enumerable
2122
)
2223
{
2324
}

Src/Gedaq.Npgsql/Attributes/QueryBatchAttribute.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ public QueryBatchAttribute(
1212
MethodType methodType,
1313
AccessModifier accessModifier = AccessModifier.AsContainingClass,
1414
AsyncResult asyncResultType = AsyncResult.ValueTask,
15-
Type asPartInterface = null
15+
Type asPartInterface = null,
16+
ReturnType returnType = ReturnType.Enumerable
1617
)
1718
{
1819
}

Src/Gedaq.Npgsql/Gedaq.Npgsql.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<TargetFramework>net6.0</TargetFramework>
44
</PropertyGroup>
55
<ItemGroup>
6-
<PackageReference Include="Gedaq.Common" Version="0.3.4" />
6+
<PackageReference Include="Gedaq.Common" Version="0.3.5" />
77
<PackageReference Include="Npgsql" Version="7.0.6" />
88
</ItemGroup>
99
<PropertyGroup>
1010
<PackageId>Gedaq.Npgsql</PackageId>
11-
<PackageVersion>1.2.6.0</PackageVersion>
11+
<PackageVersion>1.2.7.0</PackageVersion>
1212
<Authors>Brevnov Vyacheslav Sergeevich</Authors>
1313
<RepositoryUrl>https://github.com/SoftStoneDevelop/Gedaq.Npgsql</RepositoryUrl>
1414
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>

Src/NpgsqlBenchmark/NpgsqlBenchmark.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<TargetFramework>net7.0</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="BenchmarkDotNet" Version="0.13.8" />
8-
<PackageReference Include="Dapper" Version="2.0.151" />
7+
<PackageReference Include="BenchmarkDotNet" Version="0.13.9" />
8+
<PackageReference Include="Dapper" Version="2.1.4" />
99
<PackageReference Include="Dapper.AOT" Version="0.5.0-beta.49" />
10-
<PackageReference Include="Gedaq" Version="1.4.11.1" />
10+
<PackageReference Include="Gedaq" Version="1.5.0" />
1111
<PackageReference Include="Gedaq.DbConnection" Version="1.2.5" />
12-
<PackageReference Include="Gedaq.Npgsql" Version="1.2.5" />
12+
<PackageReference Include="Gedaq.Npgsql" Version="1.2.6" />
1313
<PackageReference Include="System.Linq.Async" Version="6.0.1" />
1414
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
1515
</ItemGroup>

0 commit comments

Comments
 (0)