roadie/Roadie.Api.Library/Identity/ApplicationUserRole.cs
2018-12-26 13:39:13 -06:00

19 lines
No EOL
528 B
C#

using Microsoft.AspNetCore.Identity;
using System.ComponentModel.DataAnnotations.Schema;
namespace Roadie.Library.Identity
{
[Table("usersInRoles")]
public class ApplicationUserRole : IdentityUserRole<int>
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public virtual ApplicationRole Role { get; set; }
[Column("userRoleId")]
public override int RoleId { get; set; }
public virtual ApplicationUser User { get; set; }
}
}