Error There are no comments for in the schema

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 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 ?

    
asked by anonymous 28.12.2016 / 18:56

1 answer

5

It would not be just: return oDB.LicitacaoOfflines.ToList();

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