123456789101112131415161718192021222324252627 |
- using MTWorkHR.Core.Entities;
- using MTWorkHR.Core.Entities.Base;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MTWorkHR.Infrastructure.Entities
- {
- // This partial class to add the navigation prop ApplicationRole
- // because ApplicationRole is defined in Infrastructure.Identity and cannot be used in Core layer
- public class RolePermission : Entity
- {
- public string RoleId { get; set; }
- [ForeignKey("RoleId")]
- public ApplicationRole Role { get; set; }
- public long PermissionId { get; set; }
- [ForeignKey("PermissionId")]
- public Permission Permission { get; set; }
- public string PermissionName { get; set; }
- }
- }
|