0
如何用Serializable屬性LINQ類標記System.Data.Linq.EntitySet和System.Data.Linq.EntityRef字段。Linq to SQL - 序列化
在對象關係設計器中,將序列化模式屬性更改爲單向。
仍然拋出以下錯誤:
Type 'System.Data.Linq.EntitySet`1 [[CIMS.Framework.DataAccess.Models.Assessments_ResponseWorkflow,
CIMS.Framework.DataAccess, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null]]' in Assembly 'System.Data.Linq, Version=3.5.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.Runtime.Serialization.SerializationException:
Type 'System.Data.Linq.EntitySet`1
[[CIMS.Framework.DataAccess.Models.Assessments_ResponseWorkflow,
CIMS.Framework.DataAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'
in Assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' is not marked as serializable.
任何例子嗎?