I get a very long strange error when I try to serialize this.
On this line
I assume it is because I have a select in there and thus not the full table.
I am using LINQ to SQL and have the DataMember DataContract attributed decorating my Entity Classes.
Dim db As New DataClasses1DataContext
Dim casenames = (From cn In db.tbl_tests Where cn.Bear = lc _
Select cn.Kan, cn.Sach, cn.LuT).First
Dim stream1 As New MemoryStream()
Dim ser As New DataContractJsonSerializer(GetType(tbl_test))
Could someone please help.