proplem on linq and csla

proplem on linq and csla

Old forum URL: forums.lhotka.net/forums/t/6818.aspx


Programmer1987 posted on Saturday, April 18, 2009

I am working on database that have a table with xml type column i use a linq and this column become XElement then i create a business class to match this table

now when i call a save method the exemption occurs

Type 'System.Xml.Linq.XElement' in Assembly 'System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.

what can i do

ajj3085 replied on Monday, April 20, 2009

Well.. you have all the information. You're trying somewhere to serailize an XElement, and you can't serialize those.

Amer replied on Monday, April 20, 2009

you can convert the type in the linq to string and then make the cast to xml in database

cast(@param as xml)

Copyright (c) Marimer LLC