DataAccessAdapter not marked serializable

Posts   
 
    
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 27-Oct-2005 12:07:29   

I am trying to serialize an object that has a DataAccessAdapter property. I am getting an error that DatabaseSpecific.DataAccessAdapter is Not marked as serializable. This is LLBL 1.0.2004.2 (the 10-10-2005 release)

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 27-Oct-2005 12:30:46   

Correct, as it has a live connection internally. So serializing the dataaccessadapter makes no sense.

Workaround: mark it as [NonSerialized] and re-map a live dataaccessadapter instance when you re-instantiate the object.

Frans Bouma | Lead developer LLBLGen Pro
omar avatar
omar
User
Posts: 569
Joined: 15-Oct-2004
# Posted on: 27-Oct-2005 12:56:27   

Thanks... that worked great