title: Restrict DBSet to a subset of entities
body: <p>I am building a multi-tenant application using EF 4, I have a shared database an many entities have a CustomerID field. I was wondering if there was a way I could enforce a CustomerID query at my DBSet level from my DBContext. </p>
  
  <p>I was hoping I could specify a CustomerID when I create my DB context, and wrap the DBSets to always include a (x => x.CustomerID == custID) so I don't need to worry about adding this logic all over my application, but I haven't been able to find anything that suggests its possible</p>
  
  <p>Many thanks</p>