linq-to-dataset

Why is LINQ JOIN so much faster than linking with WHERE?

风流意气都作罢 提交于 2019-11-25 22:04:00
问题 I\'ve recently upgraded to VS 2010 and am playing around with LINQ to Dataset. I have a strong typed dataset for Authorization that is in HttpCache of an ASP.NET WebApplication. So i wanted to know what actually is the fastest way to check if a user is authorized to do something. Here is my datamodel and some other informations if somebody is interested. I have checked 3 ways: direct database LINQ query with Where conditions as \"Join\" - Syntax LINQ query with Join - Syntax These are the