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

19 lines
688 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 ModuleTools.Attributes;
using System;
namespace CoreModels.ModelsSecurity
{
/// <summary>
/// Связка пользователь - роль
/// </summary>
[EntityDescription("UserRole", "Связь пользователей системы с ролями, которые им назначены")]
[EntityDependency("Role", "RoleId", "К какой роли относится пользователь")]
[EntityDependency("User", "UserId", "К какой роли относится пользователь")]
public interface IUserRoleModel : IId
{
Guid RoleId { get; }
Guid UserId { get; }
}
}