csharp 通过新的QueryBuilder API查询SDL SmartTarget 2014

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp 通过新的QueryBuilder API查询SDL SmartTarget 2014相关的知识,希望对你有一定的参考价值。

// get the triggers from ADF
ClaimStore claimStore = AmbientDataContext.CurrentClaimStore;
string triggers = AmbientDataHelper.GetTriggers(claimStore);

// make  query builder and feed the triggers into it
var queryBuilder = new QueryBuilder();
queryBuilder.Parse(triggers);

// set the publication id and SmartTarget region. Both are required to query
// for SmartTarget promotions
queryBuilder.AddCriteria(new PublicationCriteria(new TcmUri("tcm:0-69-1")));
queryBuilder.AddCriteria(new RegionCriteria("Homepage Promotions"));

以上是关于csharp 通过新的QueryBuilder API查询SDL SmartTarget 2014的主要内容,如果未能解决你的问题,请参考以下文章

ORMLite QueryBuilder.orderByRaw(String, SelectArg) 忽略 QueryBuilder.queryRaw() 上的 SelectArg

无法通过java中的QueryBuilder将json插入cassandra

学说:QueryBuilder 与 createQuery?

如何使用 Doctrine QueryBuilder 或 EntityManager 通过多对多相关实体查找实体

学说:ORM QueryBuilder 或 DBAL QueryBuilder

月经贴 Csharp in depth