Error There are no comments for in the schema

Asked

Viewed 48 times

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?

1 answer

5


It wouldn’t just be: return oDB.LicitacaoOfflines.ToList();

public static List<LicitacaoOffline> Buscar()
{
      DatabaseEstoqueOfflineDataContext oDB = new DatabaseEstoqueOfflineDataContext();
      return oDB.LicitacaoOfflines.ToList();
}

Browser other questions tagged

You are not signed in. Login or sign up in order to post.