What is the best way to make the village?
What is the best way to make the village?
Finally, I researched a little more and I think I got the solution. What solves my problem is the so-called anonymous object, where we need to select more than one item from u
var db = new LojaEntities();
var consulta = from p in db.Funcionarios select new {p.Nome, p.CPF, p.Endereco};
datagridview1.DataSource = consulta.ToList();