| | | 1 | | using Estud.Back.Domain.Institutions; |
| | | 2 | | |
| | | 3 | | namespace Estud.Back.Domain.Identity; |
| | | 4 | | |
| | | 5 | | public class EstudUserRole : IdentityUserRole<int> |
| | | 6 | | { |
| | 34 | 7 | | public int InstitutionId { get; set; } |
| | | 8 | | |
| | 936 | 9 | | public Institution? Institution { get; set; } |
| | 970 | 10 | | public EstudUser? User { get; set; } |
| | 0 | 11 | | public EstudRole? Role { get; set; } |
| | | 12 | | |
| | 1708 | 13 | | public EstudUserRole() {} |
| | | 14 | | |
| | 936 | 15 | | public EstudUserRole(Institution institution, EstudUser user, int roleId) |
| | | 16 | | { |
| | 936 | 17 | | Institution = institution; |
| | 936 | 18 | | User = user; |
| | 936 | 19 | | RoleId = roleId; |
| | 936 | 20 | | } |
| | | 21 | | |
| | 34 | 22 | | public EstudUserRole(int institutionId, EstudUser user, int roleId) |
| | | 23 | | { |
| | 34 | 24 | | InstitutionId = institutionId; |
| | 34 | 25 | | User = user; |
| | 34 | 26 | | RoleId = roleId; |
| | 34 | 27 | | } |
| | | 28 | | |
| | 0 | 29 | | public EstudUserRole(int institutionId, int userId, int roleId) |
| | | 30 | | { |
| | 0 | 31 | | InstitutionId = institutionId; |
| | 0 | 32 | | UserId = userId; |
| | 0 | 33 | | RoleId = roleId; |
| | 0 | 34 | | } |
| | | 35 | | } |