I messed with templates first (http://www.devart.com/forums/viewtopic. ... rializable), adding a attribute to my classes. This approach does not work as it will yield the dreaded "Type 'System.Data.Linq.EntitySet`1[*]' in Assembly '*' is not marked as serializable" error. Pretty much a dead end there.
Then I ran across a post from Rick Strahl (http://west-wind.com/weblog/posts/147218.aspx) so it looked like my next approach was to change the Model Properties -> Model -> Serialization Mode to "Unidirectional" and see what happens.
Curiously, this seems to has exposed a bug in the codegen logic, as there is a syntax error in the resulting output. Here is an example (note the rogue ">" at the end of the first occurrence of "Of BusinessAddress"):
Code: Select all
Private Sub Initialize()
Me._BusinessAddress = new EntitySet(Of BusinessAddress>(new Action(AddressOf Me.attach_BusinessAddress), new Action<BusinessAddress)(AddressOf Me.detach_BusinessAddress))
...
End Sub
Please advise on how to proceed.
Stuart