[LINQ]等效SELECT TOP 10 OOXX FROM XXOO

  • 2405
  • 0

摘要:[LINQ]等效SELECT TOP 10 OOXX FROM XXOO


var model = (from p in db.tmpersons                        
                        where 1 == 1                        
                        select p).Take(10);
            return View(model);