Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can MM objects be serialized?
Message
From
24/02/2011 14:47:30
 
 
To
23/02/2011 15:55:29
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
OS:
Windows 7
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01501488
Message ID:
01501711
Views:
41
Hey Tim,

We tried that initially and wondered for about a second why you were able to get that to work while we couldn't; then we checked our version. Turns out we were using 3.5.

On upgrading to 3.6 (vs 2008 for the time being still, unfortunately), we were golden and now we're back in business.

Thanks for your help.
Gerard

>Hi Gerard,
>
>>Working with Tom Eberhard on web-based solution using MM .Net entities and mmBindingList class.
>>
>>We are using the objects from the business layer, but not binding to MM controls.
>>Instead, we're attempting to use the data returned, to be read by other controls, such as a Gaia GridView control. The problem occurs when attempting to store a mmBindingList collection or entity type class inherited from OakLeaf.MM.Main.Business.mmAbstractBusinessObject. It seems that because we are not using inProc SessionState we cannot use the classes, as they apparently are not serializable. We have a server farm and session must be shared.
>>
>>Is there a way around this?
>>
>>Thanks,
>>Gerard
>
>Yes, they can be serialized. I am not sure what version you are using, but I submitted a fix to OakLeaf that has been added in the latest version. The Base entity classes had the Serializable attribute on the entites but I think the ABusinessEntity did not from the project template. If you add the attribute, all your entites will be serializable. I do serialize them in some apps of mine.
>Tim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform