Skip to content

Commit 617afdd

Browse files
author
Dmitry Sikorsky
committed
Added SaveAsync method to the IStorage interface and to the default implementations, updated dependencies
1 parent 17857a9 commit 617afdd

31 files changed

Lines changed: 62 additions & 38 deletions

File tree

src/ExtCore.Data.Abstractions/ExtCore.Data.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Dmitry Sikorsky</Authors>
55
<Copyright>Copyright © 2015 Dmitry Sikorsky</Copyright>
66
<Description>The ExtCore.Data extension component. Based on the ExtCore framework.</Description>
7-
<VersionPrefix>4.0.0</VersionPrefix>
7+
<VersionPrefix>4.1.0</VersionPrefix>
88
<TargetFramework>netstandard2.0</TargetFramework>
99
<AssemblyName>ExtCore.Data.Abstractions</AssemblyName>
1010
<PackageId>ExtCore.Data.Abstractions</PackageId>

src/ExtCore.Data.Abstractions/IStorage.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright © 2015 Dmitry Sikorsky. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using System.Threading.Tasks;
5+
46
namespace ExtCore.Data.Abstractions
57
{
68
/// <summary>
@@ -26,5 +28,10 @@ public interface IStorage
2628
/// Commits the changes made by all the repositories.
2729
/// </summary>
2830
void Save();
31+
32+
/// <summary>
33+
/// Asynchronously commits the changes made by all the repositories.
34+
/// </summary>
35+
Task SaveAsync();
2936
}
3037
}

src/ExtCore.Data.Dapper.MySql/ExtCore.Data.Dapper.MySql.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Dmitry Sikorsky</Authors>
55
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
66
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7-
<VersionPrefix>4.0.0</VersionPrefix>
7+
<VersionPrefix>4.1.0</VersionPrefix>
88
<TargetFramework>netstandard2.0</TargetFramework>
99
<AssemblyName>ExtCore.Data.Dapper.MySql</AssemblyName>
1010
<PackageId>ExtCore.Data.Dapper.MySql</PackageId>
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.13" />
16+
<PackageReference Include="MySql.Data.EntityFrameworkCore" Version="8.0.16" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/ExtCore.Data.Dapper.PostgreSql/ExtCore.Data.Dapper.PostgreSql.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Dmitry Sikorsky</Authors>
55
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
66
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7-
<VersionPrefix>4.0.0</VersionPrefix>
7+
<VersionPrefix>4.1.0</VersionPrefix>
88
<TargetFramework>netstandard2.0</TargetFramework>
99
<AssemblyName>ExtCore.Data.Dapper.PostgreSql</AssemblyName>
1010
<PackageId>ExtCore.Data.Dapper.PostgreSql</PackageId>
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.2.0" />
16+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.2.4" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/ExtCore.Data.Dapper.SqlServer/ExtCore.Data.Dapper.SqlServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Dmitry Sikorsky</Authors>
55
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
66
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7-
<VersionPrefix>4.0.0</VersionPrefix>
7+
<VersionPrefix>4.1.0</VersionPrefix>
88
<TargetFramework>netstandard2.0</TargetFramework>
99
<AssemblyName>ExtCore.Data.Dapper.SqlServer</AssemblyName>
1010
<PackageId>ExtCore.Data.Dapper.SqlServer</PackageId>

src/ExtCore.Data.Dapper.Sqlite/ExtCore.Data.Dapper.Sqlite.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Dmitry Sikorsky</Authors>
55
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
66
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7-
<VersionPrefix>4.0.0</VersionPrefix>
7+
<VersionPrefix>4.1.0</VersionPrefix>
88
<TargetFramework>netstandard2.0</TargetFramework>
99
<AssemblyName>ExtCore.Data.Dapper.Sqlite</AssemblyName>
1010
<PackageId>ExtCore.Data.Dapper.Sqlite</PackageId>
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.2.0" />
16+
<PackageReference Include="Microsoft.Data.Sqlite" Version="2.2.4" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/ExtCore.Data.Dapper/ExtCore.Data.Dapper.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Dmitry Sikorsky</Authors>
55
<Copyright>Copyright © 2017 Dmitry Sikorsky</Copyright>
66
<Description>The ExtCore.Data.Dapper extension component. Based on the ExtCore framework.</Description>
7-
<VersionPrefix>4.0.0</VersionPrefix>
7+
<VersionPrefix>4.1.0</VersionPrefix>
88
<TargetFramework>netstandard2.0</TargetFramework>
99
<AssemblyName>ExtCore.Data.Dapper</AssemblyName>
1010
<PackageId>ExtCore.Data.Dapper</PackageId>
@@ -13,7 +13,7 @@
1313
</PropertyGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Dapper" Version="1.50.5" />
16+
<PackageReference Include="Dapper" Version="1.60.6" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/ExtCore.Data.Dapper/Extension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class Extension : ExtensionBase
2424
/// <summary>
2525
/// Gets the version of the extension.
2626
/// </summary>
27-
public override string Version => "4.0.0";
27+
public override string Version => "4.1.0";
2828

2929
/// <summary>
3030
/// Gets the authors of the extension (separated by commas).

src/ExtCore.Data.Dapper/Storage.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright © 2017 Dmitry Sikorsky. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

4+
using System.Threading.Tasks;
45
using ExtCore.Data.Abstractions;
56
using ExtCore.Infrastructure;
67

@@ -44,5 +45,12 @@ public TRepository GetRepository<TRepository>() where TRepository : IRepository
4445
public void Save()
4546
{
4647
}
48+
49+
/// <summary>
50+
/// Asynchronously commits the changes made by all the repositories.
51+
/// </summary>
52+
public async Task SaveAsync()
53+
{
54+
}
4755
}
4856
}

src/ExtCore.Data.Entities.Abstractions/ExtCore.Data.Entities.Abstractions.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Authors>Dmitry Sikorsky</Authors>
55
<Copyright>Copyright © 2015 Dmitry Sikorsky</Copyright>
66
<Description>The ExtCore.Data extension component. Based on the ExtCore framework.</Description>
7-
<VersionPrefix>4.0.0</VersionPrefix>
7+
<VersionPrefix>4.1.0</VersionPrefix>
88
<TargetFramework>netstandard2.0</TargetFramework>
99
<AssemblyName>ExtCore.Data.Entities.Abstractions</AssemblyName>
1010
<PackageId>ExtCore.Data.Entities.Abstractions</PackageId>

0 commit comments

Comments
 (0)