2022-03-18 22:38:52 +04:00
|
|
|
|
namespace ToolsModule.Interfaces
|
2021-04-02 15:53:15 +04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Работа с сущностями с применением скрытности для полей
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T">Сущность</typeparam>
|
|
|
|
|
public interface IEntitySecurityExtenstion<T>
|
|
|
|
|
where T: new()
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Обработка сущности для сокрытия важных полей
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="entity"></param>
|
|
|
|
|
/// <param name="allowFullData"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
T SecurityCheck(T entity, bool allowFullData);
|
|
|
|
|
}
|
|
|
|
|
}
|