Try to find the solution but i cant.
So problem is next one. I have the EDM model of database. I have a class with functions to get data from DB. Like this:
public IQueryable<photos> FindUserPhotos(string userlogin)
{
return from m in db.photos
where m.userlogin == userlogin
select m;
}
How to get the Random 10 lines from DB?