File tree 2 files changed +5
-6
lines changed
src/Examples/JsonApiDotNetCoreExample/Startups
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ namespace JsonApiDotNetCoreExample
15
15
public class ClientGeneratedIdsStartup : Startup
16
16
{
17
17
public ClientGeneratedIdsStartup ( IWebHostEnvironment env )
18
- : base ( env )
19
- { }
18
+ : base ( env )
19
+ { }
20
20
21
21
public override void ConfigureServices ( IServiceCollection services )
22
22
{
@@ -41,4 +41,4 @@ public override void ConfigureServices(IServiceCollection services)
41
41
mvcBuilder : mvcBuilder ) ;
42
42
}
43
43
}
44
- }
44
+ }
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ namespace JsonApiDotNetCoreExample
12
12
/// This should be in JsonApiDotNetCoreExampleTests project but changes in .net core 3.0
13
13
/// do no longer allow that. See https://github.com/aspnet/AspNetCore/issues/15373.
14
14
/// </summary>
15
- public class ClientGeneratedIdsStartup : Startup
15
+ public class NoDefaultPageSizeStartup : Startup
16
16
{
17
- public ClientGeneratedIdsStartup ( IWebHostEnvironment env )
17
+ public NoDefaultPageSizeStartup ( IWebHostEnvironment env )
18
18
: base ( env )
19
19
{ }
20
20
@@ -31,7 +31,6 @@ public override void ConfigureServices(IServiceCollection services)
31
31
. AddDbContext < AppDbContext > ( options => options . UseNpgsql ( GetDbConnectionString ( ) ) , ServiceLifetime . Transient )
32
32
. AddJsonApi ( options => {
33
33
options . Namespace = "api/v1" ;
34
- options . DefaultPageSize = 5 ;
35
34
options . IncludeTotalRecordCount = true ;
36
35
options . EnableResourceHooks = true ;
37
36
options . LoaDatabaseValues = true ;
You can’t perform that action at this time.
0 commit comments