UserRole.cs
511 Bytes
using ColumnAttribute = System.ComponentModel.DataAnnotations.Schema.ColumnAttribute;
using TableAttribute = System.ComponentModel.DataAnnotations.Schema.TableAttribute;
namespace HHECS.Model.Entities
{
[Table("wcs_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; }
}
}