UserRole.cs 507 Bytes
using TableAttribute = System.ComponentModel.DataAnnotations.Schema.TableAttribute;
using ColumnAttribute = System.ComponentModel.DataAnnotations.Schema.ColumnAttribute;

namespace HHECS.Model.Entities
{
    [Table("userrole")]
    public class UserRole : BaseEntity<int>
    {
        [Column(Order = 2)]
        public int UserId { get; set; }

        [Column(Order = 3)]
        public int RoleId { get; set; }

        public User User { get; set; }

        public Role Role { get; set; }

    }
}