问题描述
我想在我的ASP.NET会话中存储来自Entoty Framework 4的对象。
As我已将sessionState模式切换为Stateserver所有对象,这些对象将保留在StateServer中,必须标记为< serializeable>。
这对我的普通类没有问题,但是即使在将它们标记为< serializeable>之后,EF4生成的自跟踪实体也会产生很大的问题。他们抛出异常。
任何想法?
Christoph Schuster
Weltretter.com
Hi,
i would like to store a Object from the Entoty Framework 4 in my ASP.NET Session.
As i have switched the sessionState mode to Stateserver all objects, which will be persisted in the StateServer, must be marked as <serializeable>.
This is no problem for my normal classes, but the EF4 generated self tracking entities make big problems, even after marking them as <serializeable> they throw exceptions.
any ideas?
Christoph Schuster
Weltretter.com
这篇关于在启用了Stateserver的ASP.NET会话中存储EF4 SelfTracking对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!