DocumentHelper.GetDocuments()。InCategories()API方法未按预期工作

时间:2018-09-14 11:29:47

标签: kentico

我正在尝试获取具有指定类别的给定类型的文档。这是我的代码:

var inCategoryDocuments = DocumentHelper.GetDocuments("XYZ.MyType").InCategories("CategoryCodeName");

此查询的结果:

SELECT * FROM View_CMS_Tree_Joined AS V WITH (NOLOCK, NOEXPAND) INNER JOIN xyz_MyType AS C WITH (NOLOCK) ON [V].[DocumentForeignKeyValue] = [C].[MyTypeID] AND V.ClassName = N'xyz.MyType' LEFT OUTER JOIN COM_SKU AS S WITH (NOLOCK) ON [V].[NodeSKUID] = [S].[SKUID] WHERE ([DocumentCulture] = N'en-EN' AND 0 = 1)

看起来这个API方法(.InCategories())什么都不做,或者我缺少什么?

Kentico v11.0.26

0 个答案:

没有答案