Entities in Client Application using WCF Web Services RRS feed

  • Question

  • User-974917549 posted

    Can some one inform me whether I need to replicate the same set of entities in the client which are similar to that of the ones in the server? I have planned to start a proj with service functions as wcf services and in turn they are getting referred in silverlight client application. 

    Incase if i need to consider casting to or back from the return value lists of service methods  in the server, should i be creating entity class in the client application as well? Or is there a work around? Something like exposing the entities from the server just as the services functions? 

    Wednesday, June 16, 2010 5:57 AM


  • User-2004844803 posted

    Hi siby,

    The choice is yours. When you add a reference to a WCF service the delault is to reuse types in referenced assemblies. This means that if you also add a reference to a dll containing the class you are exposing it will be reused, if not the auto generated class will be used.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 16, 2010 1:51 PM