Skip to content

Commit c13e970

Browse files
committed
chore: rename startup class
1 parent 11bc088 commit c13e970

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/Examples/JsonApiDotNetCoreExample/Startups/ClientGeneratedIdsStartup.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ namespace JsonApiDotNetCoreExample
1515
public class ClientGeneratedIdsStartup : Startup
1616
{
1717
public ClientGeneratedIdsStartup(IWebHostEnvironment env)
18-
: base (env)
19-
{ }
18+
: base(env)
19+
{ }
2020

2121
public override void ConfigureServices(IServiceCollection services)
2222
{
@@ -41,4 +41,4 @@ public override void ConfigureServices(IServiceCollection services)
4141
mvcBuilder: mvcBuilder);
4242
}
4343
}
44-
}
44+
}

src/Examples/JsonApiDotNetCoreExample/Startups/NoDefaultPageSizeStartup.cs

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ namespace JsonApiDotNetCoreExample
1212
/// This should be in JsonApiDotNetCoreExampleTests project but changes in .net core 3.0
1313
/// do no longer allow that. See https://github.com/aspnet/AspNetCore/issues/15373.
1414
/// </summary>
15-
public class ClientGeneratedIdsStartup : Startup
15+
public class NoDefaultPageSizeStartup : Startup
1616
{
17-
public ClientGeneratedIdsStartup(IWebHostEnvironment env)
17+
public NoDefaultPageSizeStartup(IWebHostEnvironment env)
1818
: base(env)
1919
{ }
2020

@@ -31,7 +31,6 @@ public override void ConfigureServices(IServiceCollection services)
3131
.AddDbContext<AppDbContext>(options => options.UseNpgsql(GetDbConnectionString()), ServiceLifetime.Transient)
3232
.AddJsonApi(options => {
3333
options.Namespace = "api/v1";
34-
options.DefaultPageSize = 5;
3534
options.IncludeTotalRecordCount = true;
3635
options.EnableResourceHooks = true;
3736
options.LoaDatabaseValues = true;

0 commit comments

Comments
 (0)