New Posts New Posts RSS Feed: Serialization
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Serialization

 Post Reply Post Reply
Author
orcities View Drop Down
Senior Member
Senior Member
Avatar

Joined: 28-Aug-2007
Location: United States
Posts: 454
Post Options Post Options   Quote orcities Quote  Post ReplyReply Direct Link To This Post Topic: Serialization
    Posted: 28-Sep-2010 at 7:40am
I am trying to save a class to the database that holds one of my entities. In doing so I found that the entity was not marked as serializable. I in turn made it serializable and it then give me.
 
Type 'IdeaBlade.EntityModel.Entity' in Assembly 'IdeaBlade.EntityModel, Version=6.0.5.0, Culture=neutral, PublicKeyToken=287b5094865421c0' is not marked as serializable.
 
How do I save an Entity to the database?
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 30-Sep-2010 at 9:26am
Hi Dan,
 
Your class must be marked with the DataContract attribute:
 
[DataContract]
public class CustomUser...
 
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down