1 // Copyright (c) .NET Foundation. All rights reserved.
2 // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3 
4 using System;
5 
6 namespace Microsoft.AspNetCore.Identity.Test
7 {
8     /// <summary>
9     ///     EntityType that represents one specific role claim
10     /// </summary>
11     public class PocoRoleClaim : PocoRoleClaim<string> { }
12 
13     /// <summary>
14     ///     EntityType that represents one specific role claim
15     /// </summary>
16     /// <typeparam name="TKey"></typeparam>
17     public class PocoRoleClaim<TKey> where TKey : IEquatable<TKey>
18     {
19         /// <summary>
20         ///     Primary key
21         /// </summary>
22         public virtual int Id { get; set; }
23 
24         /// <summary>
25         ///     User Id for the role this claim belongs to
26         /// </summary>
27         public virtual TKey RoleId { get; set; }
28 
29         /// <summary>
30         ///     Claim type
31         /// </summary>
32         public virtual string ClaimType { get; set; }
33 
34         /// <summary>
35         ///     Claim value
36         /// </summary>
37         public virtual string ClaimValue { get; set; }
38     }
39 }