public Task<List<RoleUserRecord>> GetCardContextUsersAsync(
Guid roleID,
string roleName,
string sqlTextForCard,
Guid cardID,
bool useSafeTransaction = false,
bool excludeDeputies = false,
CancellationToken cancellationToken = default
)
Public Function GetCardContextUsersAsync (
roleID As Guid,
roleName As String,
sqlTextForCard As String,
cardID As Guid,
Optional useSafeTransaction As Boolean = false,
Optional excludeDeputies As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of List(Of RoleUserRecord))
public:
virtual Task<List<RoleUserRecord^>^>^ GetCardContextUsersAsync(
Guid roleID,
String^ roleName,
String^ sqlTextForCard,
Guid cardID,
bool useSafeTransaction = false,
bool excludeDeputies = false,
CancellationToken cancellationToken = CancellationToken()
) sealed
abstract GetCardContextUsersAsync :
roleID : Guid *
roleName : string *
sqlTextForCard : string *
cardID : Guid *
?useSafeTransaction : bool *
?excludeDeputies : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _useSafeTransaction = defaultArg useSafeTransaction false
let _excludeDeputies = defaultArg excludeDeputies false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<List<RoleUserRecord>>
override GetCardContextUsersAsync :
roleID : Guid *
roleName : string *
sqlTextForCard : string *
cardID : Guid *
?useSafeTransaction : bool *
?excludeDeputies : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _useSafeTransaction = defaultArg useSafeTransaction false
let _excludeDeputies = defaultArg excludeDeputies false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<List<RoleUserRecord>>
Текст SQL-запроса, возвращающего состав контекстной роли для заданной карточки.
Значение обычно можно получить из свойства [Tessa.Roles.ContextRole.SqlTextForCard].
Состав контекстной роли.
У каждого объекта заполнено свойство [Tessa.Roles.RoleUserRecord.UserID] и может быть заполнено свойство [Tessa.Roles.RoleUserRecord.UserName], если SQL-запрос sqlTextForCard возвращает и идентификатор, и имя пользователя.