“MVC iQueryable não contém o GetAwaiter” Respostas de código

MVC iQueryable não contém o GetAwaiter

var results = await (from s in db.IntermediaryAssignment
                         where s.Dispatched == false && s.CompanyCode == 
                         company && s.RegistrationNumber ==
                          registrationNumber orderby s.StickerCode 
                         ascending select s).FirstOrDefaultAsync();
    return results;
Exuberant Eland

MVC iQueryable não contém o GetAwaiter

var db = new DatabaseContext();
    var results = await (from s in db.IntermediaryAssignment
                         where s.Dispatched == false && s.CompanyCode == 
                         company && s.RegistrationNumber ==
                          registrationNumber orderby s.StickerCode 
                         ascending select s).ToListAsync());

    return results.FirstOrDefault();
Exuberant Eland

Respostas semelhantes a “MVC iQueryable não contém o GetAwaiter”

Perguntas semelhantes a “MVC iQueryable não contém o GetAwaiter”

Mais respostas relacionadas para “MVC iQueryable não contém o GetAwaiter” em C#

Procure respostas de código populares por idioma

Procurar outros idiomas de código