Код: Выделить всё
///
/// Finds and returns a user, if any, who has the specified .
///
/// The user ID to search for.
/// The used to propagate notifications that the operation should be canceled.
///
/// The that represents the asynchronous operation, containing the user matching the specified if it exists.
///
Task FindByIdAsync(string userId, CancellationToken cancellationToken);
i 'M не хорошо с профилированием DB, поэтому я не знаю, как это проверить.
Подробнее здесь: https://stackoverflow.com/questions/793 ... -when-fetc
Мобильная версия