Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到 DbMetal 生成的类没有实现ISerializable接口,也没有用DataContractAttribute. 序列化此类类的最简单方法是什么?是否有任何 DbMetal 参数可以帮助我?
ISerializable
DataContractAttribute
试试这个:
[Serializable] public partial class YourClassName { }
有关详细信息,请参阅部分类