[LINQ]與純SQL一樣的 1=1 OR 1!=1效果

  • 2930
  • 0

摘要:[LINQ]與純SQL一樣的 1=1 OR 1!=1效果


var model = from p in db.employees
                        where 1 != 1
                        select p;
            return View(model);