Skip to content

Commit 12cae02

Browse files
author
Brandon Bernard
committed
- Update RepoDb reference to v1.15.1 stable.
1 parent 80546da commit 12cae02

9 files changed

Lines changed: 34 additions & 32 deletions

File tree

‎GraphQL.RepoDb.SqlServer/GraphQL.RepoDb.SqlServer.csproj‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
4-
<Version>16.6.0.0</Version>
5-
<AssemblyVersion>16.6.0.0</AssemblyVersion>
6-
<FileVersion>16.6.0.0</FileVersion>
4+
<Version>16.6.0.1</Version>
5+
<AssemblyVersion>16.6.0.1</AssemblyVersion>
6+
<FileVersion>16.6.0.1</FileVersion>
77
<Authors>BBernard / CajunCoding</Authors>
88
<Company>CajunCoding</Company>
99
<Description>A set of extensions for working with HotChocolate GraphQL and RepoDb as the data access micro-orm without dependency on IQueryable. This enables fully encapsulated control over SQL queries in every way within a Service or Repository layer of your application. This extension pack provides a significantly simplified facade to access critial elements such as Selections/Projections, Sort arguments, &amp; Paging arguments with support for mapping them to Models using built in RepoDb functionality. It also leverages RepoDb to provide a generic, Relay spec compatible, cursor pagination/slice query api for Sql Server.</Description>
@@ -16,6 +16,7 @@
1616
Release Notes:
1717
- Updated to support HotChocolate v16.6+.
1818
- Updated to support .Net 8 and .Net 10 (.Net 6 is now removed as it's no longer supported by Microsoft).
19+
- Update RepoDb reference to v1.15.1 stable.
1920

2021
Prior Releases Notes:
2122
- Updated and Optimized now with HC v13 -- leveraging more out-of-the-box features, simplifying code, and improving performance.
@@ -62,7 +63,7 @@
6263
</ItemGroup>
6364

6465
<ItemGroup>
65-
<PackageReference Include="RepoDb.SqlServer" Version="1.13.1" />
66+
<PackageReference Include="RepoDb.SqlServer" Version="1.15.1" />
6667
</ItemGroup>
6768

6869
<ItemGroup>

‎GraphQL.RepoDb.SqlServer/GraphQLRepoDbPagingOperations/GraphQLRepoDbBatchSliceQueryExtensions.cs‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static class GraphQLRepoDbBatchSliceQueryExtensions
3939
/// <param name="transaction"></param>
4040
/// <param name="logTrace"></param>
4141
/// <param name="cancellationToken"></param>
42-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
42+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
4343
[Obsolete("NOTE: This Method remains for backwards compatibility since the underlying RepoDb.SqlServer.PagingOperations package was released with renamed methods for better clarity.")]
4444
public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEntity, TDbConnection>(
4545
this BaseRepository<TEntity, TDbConnection> baseRepo,
@@ -95,7 +95,7 @@ public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEnt
9595
/// <param name="transaction"></param>
9696
/// <param name="logTrace"></param>
9797
/// <param name="cancellationToken"></param>
98-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
98+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
9999
[Obsolete("NOTE: This Method remains for backwards compatibility since the underlying RepoDb.SqlServer.PagingOperations package was released with renamed methods for better clarity.")]
100100
public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEntity, TDbConnection>(
101101
this BaseRepository<TEntity, TDbConnection> baseRepo,
@@ -151,7 +151,7 @@ public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEnt
151151
/// <param name="transaction"></param>
152152
/// <param name="logTrace"></param>
153153
/// <param name="cancellationToken"></param>
154-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
154+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
155155
[Obsolete("NOTE: This Method remains for backwards compatibility since the underlying RepoDb.SqlServer.PagingOperations package was released with renamed methods for better clarity.")]
156156
public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEntity, TDbConnection>(
157157
this BaseRepository<TEntity, TDbConnection> baseRepo,
@@ -207,7 +207,7 @@ public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEnt
207207
/// <param name="transaction"></param>
208208
/// <param name="logTrace"></param>
209209
/// <param name="cancellationToken"></param>
210-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
210+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
211211
[Obsolete("NOTE: This Method remains for backwards compatibility since the underlying RepoDb.SqlServer.PagingOperations package was released with renamed methods for better clarity.")]
212212
public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEntity>(
213213
this DbConnection dbConnection,
@@ -261,7 +261,7 @@ public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEnt
261261
/// <param name="transaction"></param>
262262
/// <param name="logTrace"></param>
263263
/// <param name="cancellationToken"></param>
264-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
264+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
265265
[Obsolete("NOTE: This Method remains for backwards compatibility since the underlying RepoDb.SqlServer.PagingOperations package was released with renamed methods for better clarity.")]
266266
public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEntity>(
267267
this DbConnection dbConnection,
@@ -316,7 +316,7 @@ public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEnt
316316
/// <param name="transaction"></param>
317317
/// <param name="logTrace"></param>
318318
/// <param name="cancellationToken"></param>
319-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
319+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
320320
[Obsolete("NOTE: This Method remains for backwards compatibility since the underlying RepoDb.SqlServer.PagingOperations package was released with renamed methods for better clarity.")]
321321
public static Task<ICursorPageResults<TEntity>> GraphQLBatchSliceQueryAsync<TEntity>(
322322
this DbConnection dbConnection,

‎GraphQL.RepoDb.sln‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio Version 17
4-
VisualStudioVersion = 17.5.33103.201
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.9.12105.275 stable
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GraphQL.RepoDb.SqlServer", "GraphQL.RepoDb.SqlServer\GraphQL.RepoDb.SqlServer.csproj", "{9B7A623E-4CA8-4897-8EE7-87E692115FAC}"
77
EndProject

‎GraphQL.ResolverProcessingExtensions/DotNetCustomExtensions/TypeCustomExtensions.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ public static class SystemTypeCustomExtensions
1414
/// <returns></returns>
1515
public static bool IsDerivedFromGenericParent(this Type type, Type parentType)
1616
{
17-
if (!parentType.IsGenericType)
17+
if (parentType is null || !parentType.IsGenericType)
1818
{
1919
throw new ArgumentException("type must be generic", nameof(parentType));
2020
}
21-
else if (type == null || type == typeof(object))
21+
else if (type is null || type == typeof(object))
2222
{
2323
return false;
2424
}
@@ -31,7 +31,7 @@ public static bool IsDerivedFromGenericParent(this Type type, Type parentType)
3131
{
3232
return true;
3333
}
34-
34+
3535
return false;
3636
}
3737
}

‎RepoDbExtensions.PagingPrimitives/RepoDbExtensions.PagingPrimitives.csproj‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net10.0</TargetFrameworks>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
6-
<Version>1.13.1.4</Version>
7-
<AssemblyVersion>1.13.1.4</AssemblyVersion>
8-
<FileVersion>1.13.1.4</FileVersion>
6+
<Version>1.15.1.0</Version>
7+
<AssemblyVersion>1.15.1.0</AssemblyVersion>
8+
<FileVersion>1.15.1.0</FileVersion>
99
<Authors>BBernard / CajunCoding</Authors>
1010
<Company>CajunCoding</Company>
1111
<Description>The primitives and helpers needed for RepoDbExtensions.SqlServer.PagingOperations pacakge; used for working with modern pagination approaches such as Cursor based paging, as well as Offset based pagination, using the RepoDb ORM with Sql Server.</Description>
@@ -17,6 +17,7 @@
1717
<PackageReleaseNotes>
1818
Release Notes:
1919
- Updated to support .Net 8 and .Net 10 (.Net 6 is now removed as it's no longer supported by Microsoft).
20+
- Update RepoDb reference to v1.15.1 stable.
2021

2122
Prior Release Notes:
2223
- Updated to now support the latest version of RepoDb v1.13.1 and later; version convention conveys the compatible version of RepoDb.

‎RepoDbExtensions.SqlServer.PagingOperations/QueryBuilders/RepoDbQueryBuilderHelperExtensions.cs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using RepoDb.Extensions;
22
using System.Collections.Generic;
3-
using System.Data;
43
using System.Data.Common;
54
using System.Linq;
65
using System.Threading.Tasks;

‎RepoDbExtensions.SqlServer.PagingOperations/RepoDbExtensions.SqlServer.PagingOperations.csproj‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net10.0</TargetFrameworks>
5-
<Version>1.13.1.4</Version>
6-
<AssemblyVersion>1.13.1.4</AssemblyVersion>
7-
<FileVersion>1.13.1.4</FileVersion>
5+
<Version>1.15.1.0</Version>
6+
<AssemblyVersion>1.15.1.0</AssemblyVersion>
7+
<FileVersion>1.15.1.0</FileVersion>
88
<Authors>BBernard / CajunCoding</Authors>
99
<Company>CajunCoding</Company>
1010
<Description>A set of extensions for working with modern pagination approaches such as Cursor based paging, as well as Offset based pagination, using the RepoDb ORM with Sql Server.</Description>
@@ -16,6 +16,7 @@
1616
<PackageReleaseNotes>
1717
Release Notes:
1818
- Updated to support .Net 8 and .Net 10 (.Net 6 is now removed as it's no longer supported by Microsoft).
19+
- Update RepoDb reference to v1.15.1 stable.
1920

2021
Prior Release Notes:
2122
- Fix bug with Pagination not properly running Raw Sql that has a Where/Join clause in some use cases.
@@ -39,7 +40,7 @@
3940
<PrivateAssets>all</PrivateAssets>
4041
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4142
</PackageReference>
42-
<PackageReference Include="RepoDb.SqlServer" Version="1.13.1" />
43+
<PackageReference Include="RepoDb.SqlServer" Version="1.15.1" />
4344
</ItemGroup>
4445

4546
<ItemGroup>

‎RepoDbExtensions.SqlServer.PagingOperations/RepoDbPagingCursorQueryExtensions.cs‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public static class RepoDbBatchSliceQueryExtensions
4444
/// <param name="transaction"></param>
4545
/// <param name="logTrace"></param>
4646
/// <param name="cancellationToken"></param>
47-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
47+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
4848
public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEntity, TDbConnection>(
4949
this BaseRepository<TEntity, TDbConnection> baseRepo,
5050
IEnumerable<OrderField> orderBy,
@@ -99,7 +99,7 @@ public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEn
9999
/// <param name="transaction"></param>
100100
/// <param name="logTrace"></param>
101101
/// <param name="cancellationToken"></param>
102-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
102+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
103103
public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEntity, TDbConnection>(
104104
this BaseRepository<TEntity, TDbConnection> baseRepo,
105105
IEnumerable<OrderField> orderBy,
@@ -154,7 +154,7 @@ public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEn
154154
/// <param name="transaction"></param>
155155
/// <param name="logTrace"></param>
156156
/// <param name="cancellationToken"></param>
157-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
157+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
158158
public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEntity, TDbConnection>(
159159
this BaseRepository<TEntity, TDbConnection> baseRepo,
160160
IEnumerable<OrderField> orderBy,
@@ -209,7 +209,7 @@ public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEn
209209
/// <param name="transaction"></param>
210210
/// <param name="logTrace"></param>
211211
/// <param name="cancellationToken"></param>
212-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
212+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
213213
private static async Task<ICursorPageResults<TEntity>> PagingCursorQueryForRepoInternalAsync<TEntity, TDbConnection>(
214214
this BaseRepository<TEntity, TDbConnection> baseRepo,
215215
IEnumerable<OrderField> orderBy,
@@ -284,7 +284,7 @@ private static async Task<ICursorPageResults<TEntity>> PagingCursorQueryForRepoI
284284
/// <param name="transaction"></param>
285285
/// <param name="logTrace"></param>
286286
/// <param name="cancellationToken"></param>
287-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
287+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
288288
public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEntity>(
289289
this DbConnection dbConnection,
290290
IEnumerable<OrderField> orderBy,
@@ -339,7 +339,7 @@ public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEn
339339
/// <param name="transaction"></param>
340340
/// <param name="logTrace"></param>
341341
/// <param name="cancellationToken"></param>
342-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
342+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
343343
public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEntity>(
344344
this DbConnection dbConnection,
345345
IEnumerable<OrderField> orderBy,
@@ -397,7 +397,7 @@ public static async Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEn
397397
/// <param name="transaction"></param>
398398
/// <param name="logTrace"></param>
399399
/// <param name="cancellationToken"></param>
400-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
400+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
401401
public static Task<ICursorPageResults<TEntity>> PagingCursorQueryAsync<TEntity>(
402402
this DbConnection dbConnection,
403403
IEnumerable<OrderField> orderBy,
@@ -661,7 +661,7 @@ private static void DisposeConnectionForPerCallExtension<TEntity, TDbConnection>
661661
/// <param name="transaction"></param>
662662
/// <param name="logTrace"></param>
663663
/// <param name="cancellationToken"></param>
664-
/// <returns>CursorPageSlice&lt;TEntity&gt;</returns>
664+
/// <returns>ICursorPageResults&lt;TEntity&gt;</returns>
665665
private static async Task<CursorPageResults<TEntity>> ExecuteCursorPagingQueryInternalAsync<TEntity>(
666666
this DbConnection dbConn,
667667
SqlQuerySliceInfo sqlQuerySliceInfo,

‎Sample.StarWars-AzureFunctions-RepoDB/StarWars-AzureFunctions-RepoDB.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.52.0" />
2424
<PackageReference Include="Microsoft.Azure.Functions.Worker.Sdk" Version="2.1.0" />
2525
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http" Version="3.3.0" />
26-
<PackageReference Include="RepoDb.SqlServer" Version="1.13.1" />
26+
<PackageReference Include="RepoDb.SqlServer" Version="1.15.1" />
2727
</ItemGroup>
2828
<ItemGroup>
2929
<ProjectReference Include="..\GraphQL.RepoDB.SqlServer\GraphQL.RepoDb.SqlServer.csproj" />

0 commit comments

Comments
 (0)