其实是个bug.在ef 6.2里面已经修复.
http://stackoverflow.com/questions/7897630/why-does-the-contains-operator-degrade-entity-frameworks-performance-so-drama/7936350#7936350
http://entityframework.codeplex.com/wikipage?title=Updating%20Applications%20to%20use%20EF6