Skip to content

Commit 4f57ad5

Browse files
authored
Merge pull request #44 from SubSonic-Core/dev/34-asynchronous-paging
Dev/34 asynchronous paging
2 parents 57c8a13 + c6b7098 commit 4f57ad5

File tree

210 files changed

+1014
-876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+1014
-876
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
5+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6+
<Authors>Kenneth Carter</Authors>
7+
<Version>4.1.0-alpha.1</Version>
8+
<SignAssembly>true</SignAssembly>
9+
<IncludeSymbols>true</IncludeSymbols>
10+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
11+
<AssemblyOriginatorKeyFile>SubSonicStrongName.snk</AssemblyOriginatorKeyFile>
12+
<PackageLicenseFile>LICENSE.MD</PackageLicenseFile>
13+
</PropertyGroup>
14+
15+
<ItemGroup>
16+
<PackageReference Condition="'$(TargetFramework)'=='netstandard2.0'" Include="AsyncEnumerator" Version="4.0.2" />
17+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.5" />
18+
</ItemGroup>
19+
20+
<ItemGroup>
21+
<None Include="..\LICENSE.MD">
22+
<Pack>True</Pack>
23+
<PackagePath></PackagePath>
24+
</None>
25+
</ItemGroup>
26+
27+
</Project>
596 Bytes
Binary file not shown.

SubSonic/Interfaces/IAsyncSubSonicQueryProvider.cs renamed to SubSonic.Core.Abstractions/src/IAsyncSubSonicQueryProvider.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
using System.Threading;
77
using System.Threading.Tasks;
88

9-
namespace SubSonic.Interfaces
9+
namespace SubSonic
1010
{
11-
using Linq;
12-
1311
public interface IAsyncSubSonicQueryProvider
1412
: IQueryProvider
1513
{

SubSonic/Interfaces/IAsyncSubSonicQueryable.cs renamed to SubSonic.Core.Abstractions/src/IAsyncSubSonicQueryable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Collections.Generic;
22
using System.Linq;
33

4-
namespace SubSonic.Interfaces
4+
namespace SubSonic
55
{
66
/// <summary>
77
///

SubSonic/Interfaces/IConnectionScope.cs renamed to SubSonic.Core.Abstractions/src/IConnectionScope.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Data.Common;
4-
using System.Text;
1+
using System.Data.Common;
52

63
namespace SubSonic
74
{
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
1+
using System.Collections.Generic;
42

53
namespace SubSonic
64
{
75
public interface IDbPageCollection<out TEntity>
86
: IEnumerable<TEntity>
7+
, IAsyncEnumerable<TEntity>
98
{
109
int PageSize { get; }
1110
int PageNumber { get; set; }
1211
int PageCount { get; }
1312
int RecordCount { get; set; }
14-
13+
/// <summary>
14+
/// Get the page collection with iterator
15+
/// </summary>
16+
/// <returns></returns>
1517
IDbPagesCollection<TEntity> GetPages();
1618

1719
/// <summary>
@@ -20,5 +22,10 @@ public interface IDbPageCollection<out TEntity>
2022
/// <param name="number">page number to retrieve</param>
2123
/// <returns></returns>
2224
IEnumerable<TEntity> GetRecordsForPage(int number);
25+
/// <summary>
26+
/// Get the entities for the current page;
27+
/// </summary>
28+
/// <returns></returns>
29+
IEnumerable<TEntity> GetRecordsForPage();
2330
}
2431
}

SubSonic/Interfaces/SqlGenerator/IDbPagesCollection.cs renamed to SubSonic.Core.Abstractions/src/IDbPagesCollection.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
1+
using System.Collections.Generic;
42

53
namespace SubSonic
64
{

SubSonic/Interfaces/IEntityProxy.cs renamed to SubSonic.Core.Abstractions/src/IEntityProxy.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Text;
43

54
namespace SubSonic
65
{

0 commit comments

Comments
 (0)