title: How to instantiate a WCF DataServices Client without hard-coding the URI
body: <p>I'm fairly new to WCF DataServices (OData) and I need to know the best way to instantiate the entity container on the client without hard-coding the URI. It seems like all of the examples on MSDN describe instantiating the client like this:</p>
  
  <pre><code>Uri uri = new Uri("http://www.someservice.svc");
  DataServiceContext svc = new DataServiceContext(uri);
  </code></pre>
  
  <p>However, I know I must be missing something somewhere, because it doesn't make any sense to hard-code a service address like this. For one thing, how do you dynamically change the address when you move from Development to Test to QA to Production, when each environment is likely to have a different URI?</p>
  
  <p>Thanks for any insights into this.</p>