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