Skip to content

Commit e53fd07

Browse files
committed
refactor(example): make collections use Guid Ids
1 parent fb4ebac commit e53fd07

13 files changed

+58
-346
lines changed

src/JsonApiDotNetCoreExample/Controllers/TodoItemCollectionsController.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using JsonApiDotNetCore.Controllers;
23
using JsonApiDotNetCore.Data;
34
using JsonApiDotNetCore.Services;
@@ -6,11 +7,11 @@
67

78
namespace JsonApiDotNetCoreExample.Controllers
89
{
9-
public class TodoItemCollectionsController : JsonApiController<TodoItemCollection>
10+
public class TodoItemCollectionsController : JsonApiController<TodoItemCollection, Guid>
1011
{
1112
public TodoItemCollectionsController(
1213
IJsonApiContext jsonApiContext,
13-
IEntityRepository<TodoItemCollection> entityRepository,
14+
IEntityRepository<TodoItemCollection, Guid> entityRepository,
1415
ILoggerFactory loggerFactory)
1516
: base(jsonApiContext, entityRepository, loggerFactory)
1617
{ }

src/JsonApiDotNetCoreExample/Migrations/20170117003343_Initial.Designer.cs

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/JsonApiDotNetCoreExample/Migrations/20170131150223_AddOrdinalToTodoItems.Designer.cs

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/JsonApiDotNetCoreExample/Migrations/20170131150223_AddOrdinalToTodoItems.cs

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/JsonApiDotNetCoreExample/Migrations/20170228175630_MakeOwnerOptionalOnTodoItems.Designer.cs

Lines changed: 0 additions & 60 deletions
This file was deleted.

src/JsonApiDotNetCoreExample/Migrations/20170228175630_MakeOwnerOptionalOnTodoItems.cs

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/JsonApiDotNetCoreExample/Migrations/20170228193414_AddTodoItemCollection.cs

Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)