具有扩展属性的Breeze js分页
Breeze js分页在使用expand属性进行查询时给出了错误的实体数,而不使用.take和.skip进行扩展则效果良好。有人能告诉我为什么会这样吗?我该怎么做才能正确地获得前10名的参赛作品 我的问题是:具有扩展属性的Breeze js分页,breeze,paging,expand,Breeze,Paging,Expand,Breeze js分页在使用expand属性进行查询时给出了错误的实体数,而不使用.take和.skip进行扩展则效果良好。有人能告诉我为什么会这样吗?我该怎么做才能正确地获得前10名的参赛作品 我的问题是: var query = new breeze.EntityQuery().from('Student') .where(profile.firstName', 'eq', 'Kate')
var query = new breeze.EntityQuery().from('Student')
.where(profile.firstName', 'eq', 'Kate')
.skip(10)
.take(10)
.inlineCount()
.expand(['enrollments.batch, profile']);
你的计划看来是错的。我认为两者都应该
.expand(['enrollments.batch', 'profile']); // as an array with 2 elements
或
.expand('enrollments.batch, profile'); // as a single ',' delimited string