File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
using System . Collections . Generic ;
2
+ using System . ComponentModel . DataAnnotations . Schema ;
2
3
using JsonApiDotNetCore . Models ;
3
4
using Microsoft . AspNetCore . Identity . EntityFrameworkCore ;
4
5
5
6
namespace TodoListAPI . Models
6
7
{
7
8
public class ApplicationUser : IdentityUser , IIdentifiable < string >
8
9
{
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 ; }
14
12
15
13
[ Attr ( "first-name" ) ]
16
14
public string FirstName { get ; set ; }
Original file line number Diff line number Diff line change 9
9
</ItemGroup >
10
10
11
11
<ItemGroup >
12
- <PackageReference Include =" JsonApiDotNetCore" Version =" 1.2 .*" />
12
+ <PackageReference Include =" JsonApiDotNetCore" Version =" 1.3 .*" />
13
13
<PackageReference Include =" Microsoft.AspNetCore" Version =" 1.1.0" />
14
14
<PackageReference Include =" Microsoft.AspNetCore.Mvc" Version =" 1.1.2" />
15
15
<PackageReference Include =" Microsoft.Extensions.Logging.Debug" Version =" 1.1.0" />
You can’t perform that action at this time.
0 commit comments