変数としてEF POCOを持つワークフローを永続化しようとしています。オブジェクトをシリアライズしようとすると、エラーが発生します。ワークフローの持続性におけるPOCO EFオブジェクトの直列化
Type 'System.Collections.Generic.ICollection`1[MyObject]' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
これを回避する方法はありますか。
コメントをしていただけますか?私はワークフローの外でそれをシリアル化することができますので、データ契約シリアライザが動作するようです。 – user472292