I am currently trying to serialize an object for a webproject that is hosted on a Server that uses SessionState = Stateserver.
I marked the object as [Serializable] but the object contains an object that is part of a LINQ2SQL DataContext. I already read that it is possible to serialize this one with the DataContractSerializer but where is the correct place to do that ?
Do I just need to implement ISerializeable and serialize my NodeObject inside the GetObjectData() Function and add it to the SerializationInfo ? Any one any ideas about a good approach ?
Done it now. I marked my Objects that contain the Linqobject with
[Serializable]and included theISerializableInterface.DBOItemis my LinqObjectThe Ctor that needs to be included for deserialisation looks like this :