How to expose objects through WCF?

后端 未结 4 588
北恋
北恋 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:36

    Mark up your objects that are being used by the service with [DataContract] attributes and then put [DataMember] on the public properties. This will solve your problem.

提交回复
热议问题