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

18 lines
520 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; }
2019-07-03 16:21:29 +00:00
[Column("userRoleId")] public override int RoleId { get; set; }
2018-11-10 23:26:04 +00:00
public virtual ApplicationUser User { get; set; }
}
}