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 2f66349 commit d1423c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Src/Gedaq.MySqlConnector/Attributes/QueryAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public QueryAttribute(
SourceType sourceType = SourceType.MySqlConnection,
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.MySqlConnector/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
4 changes: 2 additions & 2 deletions Src/Gedaq.MySqlConnector/Gedaq.MySqlConnector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Gedaq.Common" Version="0.3.3" />
<PackageReference Include="Gedaq.Common" Version="0.3.4" />
<PackageReference Include="MySqlConnector" Version="2.2.6" />
</ItemGroup>
<PropertyGroup>
<PackageId>Gedaq.MySqlConnector</PackageId>
<PackageVersion>1.1.3.0</PackageVersion>
<PackageVersion>1.1.4.0</PackageVersion>
<Authors>Brevnov Vyacheslav Sergeevich</Authors>
<RepositoryUrl>https://github.com/SoftStoneDevelop/Gedaq.MySqlConnector</RepositoryUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand Down

0 comments on commit d1423c6

Please sign in to comment.