c# - Reuse existing types with ADO.NET Data Services -


I have an application that uses both WCF service and an ADO.NET data service. Types are shared between server and client using shared class library.

When I configure the service reference for the WCF service, I can choose to use existing types in the class library to prevent duplicate types from creating proxy classes.

But Visual Studio does not give me the option to do this on ADO.net Data Services.

Is it an ADO? It is possible for Net Data Service

Great question.

Yes, this is definitely possible.

I have just put together that shows you how to close the default code-generator and instead give an existing type of reference, and also show how to use the data service, and how Mapping between the required types on wires, the type used on the client.

Note: Even though this type of data is within the service and on the client, it is still possible that the data service is configured to expose server types to different namespace, hence this mapping Still may be necessary.

Anyway I'm sure your scenario will help you work.

Alex


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -