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?
The error i get when the client calls the API is:
The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid.
any help would be appreciated.