roadie/Roadie.Api.Library/Identity/ApplicationUserRole.cs

19 lines
528 B
C#
Raw Normal View History

2018-11-10 23:26:04 +00:00
using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Identity
{
[Table("usersInRoles")]
public class ApplicationUserRole : IdentityUserRole<int>
{
2018-12-23 21:36:38 +00:00
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
2018-11-10 23:26:04 +00:00
public int Id { get; set; }
2018-12-23 21:36:38 +00:00
2018-11-10 23:26:04 +00:00
public virtual ApplicationRole Role { get; set; }
[Column("userRoleId")]
public override int RoleId { get; set; }
public virtual ApplicationUser User { get; set; }
}
}