1
I would like to get a list of 3 objects within a query Link.
var listaPessoas = from i in this.Context.CreateObjectSet<listaPessoas>()
select i;
...
listaPessoas = listaPessoas .Where(x => x.Nome.Contains(filtro.Nome);
...
return listaPessoas;
However, in this return I would like to pick up only 3 objects (always random) within the elements in listaPessoas
in my project I get this error. " LINQ to Entities does not recognize the method 'Int32 Next()' method, and this method cannot be Translated into a store Expression."
– Bruno Heringer
@Brunoheringer You should have said you are using Entity Framework. You want to do this randomization in the database or in memory?
– Jéf Bueno
Could be in the bank.
– Bruno Heringer
@Brunoheringer I gave an option
– Jéf Bueno
Good @Link. Top. Vlw
– Bruno Heringer