How to expose objects through WCF?

后端 未结 4 631
北恋
北恋 2021-01-21 05:32

My project is split up into a typical 3 layer structure for a Silverlight app. That is:

  • A base layer, which is a class library that contains all my business object
4条回答
  •  难免孤独
    2021-01-21 06:29

    I did something similar on a small project by creating a "communication layer" dll, which contained only the objects being passed between client and server. A variation of this (share a dll between all the projects needing these objects) should work for you. Watch out for versioning issues, though. Unless you have full control of both ends, an upgrade to one end could cause headaches, if you're not careful.

提交回复
热议问题