摘要:
问题:2个类:MetaSet和MetaObject,为1:N的关系。在Asp.net mvc2.0下,返回Json数据时,出现“序列化类型为“DataCenter.Core.Domain.MetaSet”的对象时检测到循环引用。”Mvc代码如下: IList<MetaSet> sets = new List<MetaSet>(); sets = _metaSetRepository.GetMetaSetByParentTreeCodeID(treeCodeID, CheckState.yes); if (Request.IsAjaxRequest()) { ... 阅读全文
浙公网安备 33010602011771号