TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Gary Semel
NA
4
0
Serializing an entity class to xml
Feb 8 2007 12:08 AM
I'm serializing a class to xml using the XmlSerializer. The entity class has public properties that are populated from a sql server table row. The entity's property values are referential "codes" (e.g. "A" or "RTOSEND") instead of the associated descriptive values (A->Nylon or RTOSEND->Ready To Send). We use lookups to do these translations in other parts of the code, but the entity has the raw values. The problem is that the serialized xml has the raw code values, but we want to output the descriptive (lookup) values in the xml. It doesn't help us to have
A
when we really need to see
Nylon
. How do people usually handle this type of data serialization? I suppose I could create a TranslatedEntity class whose properties are the descriptive lookup values, and serialize that. Any suggestions? Thanks! Gary
Reply
Answers (
0
)
form.close() is not working
Issue when running a Process under a user's context - CRITICAL