Pergunta

I noticed DbMetal generates classes that don't implement the ISerializable interface, nor are marked with DataContractAttribute. What is the easiest way of serializing such classes? Is there any DbMetal parameter that could help me?

Foi útil?

Solução

try this:

[Serializable]
public partial class YourClassName { }

See Partial Classes for further details

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top