Using SubSonic 2.1 Pakala Beta as your DAL in a VS 2008 WCF project to use XML or JSON? The set up is mostly the same as using it in a Windows Forms application, but there are a couple of small code changes you must make:

  • Where there is a [Serializable] attribute ( AbstractRecord.cs, RecordBase.cs, and CS_ClassTemplate.aspx) you must replace it with the [System.Runtime.Serialization.DataContract] attribute
  • Where there is a [XmlAttribute] you must replace it with [System.Runtime.Serialization.DataMember]
  • Since you’re using the Serialization namespace, you must add a reference to System.Runtime.Serialization to your project

相关文章:

  • 2021-10-11
  • 2021-12-28
  • 2022-01-15
  • 2021-04-20
  • 2022-01-23
  • 2021-07-21
  • 2021-08-09
  • 2022-12-23
猜你喜欢
  • 2022-01-13
  • 2021-11-02
  • 2022-12-23
  • 2021-07-10
  • 2021-05-22
  • 2021-04-09
  • 2022-12-23
相关资源
相似解决方案