Can I serialize POCO classes? I’m using the C# POCO entity generator.
I tried to edit the .tt file which generates the entity classes to add the Serializable attribute. Is it right?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re using POCO proxies, not pure POCOs. Pure POCOs can be serialized if (obviously) they’re serializable. Proxies might not be.