Skip to content

Commit

Permalink
feat: AsyncResult - enum Task/ValueTask option for generators
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftStoneDevelop committed Jun 13, 2023
1 parent f86d068 commit e826f67
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Src/Gedaq.DbConnection/Attributes/QueryAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ public QueryAttribute(
MethodType methodType = MethodType.Sync,
QueryType queryType = QueryType.Read,
bool generate = true,
AccessModifier accessModifier = AccessModifier.AsContainingClass
AccessModifier accessModifier = AccessModifier.AsContainingClass,
AsyncResult asyncResultType = AsyncResult.ValueTask
)
{
}
Expand Down
3 changes: 2 additions & 1 deletion Src/Gedaq.DbConnection/Attributes/QueryBatchAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public QueryBatchAttribute(
string batchName,
QueryType queryType,
MethodType methodType,
AccessModifier accessModifier = AccessModifier.AsContainingClass
AccessModifier accessModifier = AccessModifier.AsContainingClass,
AsyncResult asyncResultType = AsyncResult.ValueTask
)
{
}
Expand Down
6 changes: 3 additions & 3 deletions Src/Gedaq.DbConnection/Gedaq.DbConnection.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Gedaq.Common" Version="0.3.3" />
<PackageReference Include="Gedaq.Common" Version="0.3.4" />
</ItemGroup>
<PropertyGroup>
<PackageId>Gedaq.DbConnection</PackageId>
<PackageVersion>1.2.3.0</PackageVersion>
<PackageVersion>1.2.4.0</PackageVersion>
<Authors>Brevnov Vyacheslav Sergeevich</Authors>
<RepositoryUrl>https://github.com/SoftStoneDevelop/Gedaq.DbConnection</RepositoryUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand Down

0 comments on commit e826f67

Please sign in to comment.