4
I’m following a tutorial to access database via LINQ. In the video, I saw a function that returns me a list with the database data:
public static List<LicitacaoOffline> Buscar()
{
DatabaseEstoqueOfflineDataContext oDB = new DatabaseEstoqueOfflineDataContext();
List<LicitacaoOffline> oLicitacaoOffline =
(from Selecao in oDB.LicitacaoOfflines select Selecao)
.ToList<LicitacaoOffline>();
return oLicitacaoOffline;
}
Turns out in the code part: .ToList<LicitacaoOffline>();
the word LicitacaoOffline
is almost without color and when I hover over it, I see the following message:
There are no comments for Databaseestoqueofflinecontext.Licitacaooffline in the schema.
Name can be simplified.
How to solve?