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.
我一直在阅读有关使用 Sharp Architecture 通过 Wcf 控制休眠的信息。Sharp Architecture 中有什么东西可以帮助我通过 wcf 发送延迟加载的 nhiberante 实体吗?
如果延迟加载的实体在 WCF 尝试使用 NetDataContractSerializer 序列化它们之前已经被水合,那么你应该没问题。但是,如果没有,您可能会遇到序列化/反序列化问题,因为在序列化程序遍历对象图时,将没有 NHibernate 会话可用于延迟加载。这有点工作,但您最好通过 WCF 而不是附加实体发送 DTO。