【发布时间】:2018-05-16 09:37:04
【问题描述】:
我有一个 Web 服务,我想在其中检索具有某种内容类型但作为强类型对象的所有文档。我试着用这个:
var contentType = Services.ContentTypeService.GetContentType(PensionPoint.ModelTypeAlias);
var points = Services.ContentService.GetContentOfContentType(contentType.Id).ToList();
但是,我得到了无法执行 Object.Property 的 IContent 对象。如何检索相同的项目但作为强类型对象?
【问题讨论】: