Using SubSonic in a WCF Project
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