DepartmentProject/DepartmentPortal/Common/CoreModels/ModelsSecurity/IUserRoleModel.cs

22 lines
784 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using CoreModels.Tools;
using System;
using ToolsModule.ManagmentEntity;
using ToolsModule.ManagmentSecurity;
namespace CoreModels.ModelsSecurity
{
/// <summary>
/// Связка пользователь - роль
/// </summary>
[EntityDescription("UserRole", "Связь пользователей системы с ролями, которые им назначены")]
[EntityDependency("Role", "RoleId", "К какой роли относится пользователь")]
[EntityDependency("User", "UserId", "К какой роли относится пользователь")]
public interface IUserRoleModel : IId
{
[CheckRigthForMap]
Guid RoleId { get; }
[CheckRigthForMap]
Guid UserId { get; }
}
}