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?

有帮助吗?

解决方案

try this:

[Serializable]
public partial class YourClassName { }

See Partial Classes for further details

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top