title: WCF - Entity Framework, returning objects to client
body: <p>I have a WCF API which is being called by a .net client, i am trying to return a Entity Framework object (db object) to the client, is this bad practice? Should i use reflection to dump the data into an object that has less accesability and reurn that instead?</p>
  
  <p>The error i get when the client calls the API is: </p>
  
  <blockquote>
    <p>The specified named connection is
    either not found in the configuration,
    not intended to be used with the
    EntityClient provider, or not valid.</p>
  </blockquote>
  
  <p>any help would be appreciated.</p>