Skip to content

Commit c4b8634

Browse files
committed
chore(csproj): bump package version
upgrade mandates change to IIdentifiable interface
1 parent 7bf5627 commit c4b8634

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

TodoListAPI/Models/ApplicationUser.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
using System.Collections.Generic;
2+
using System.ComponentModel.DataAnnotations.Schema;
23
using JsonApiDotNetCore.Models;
34
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
45

56
namespace TodoListAPI.Models
67
{
78
public class ApplicationUser : IdentityUser, IIdentifiable<string>
89
{
9-
object IIdentifiable.Id
10-
{
11-
get { return Id; }
12-
set { Id = value.ToString(); }
13-
}
10+
[NotMapped]
11+
public string StringId { get => this.Id; set => Id = value; }
1412

1513
[Attr("first-name")]
1614
public string FirstName { get; set; }

TodoListAPI/TodoListAPI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</ItemGroup>
1010

1111
<ItemGroup>
12-
<PackageReference Include="JsonApiDotNetCore" Version="1.2.*" />
12+
<PackageReference Include="JsonApiDotNetCore" Version="1.3.*" />
1313
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.0" />
1414
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
1515
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.0" />

0 commit comments

Comments
 (0)