I need to retrieve the key_string_value based on value of key_name. The code i am using is as below.
public void SomeFunction()
{
Query query;
CustomMetaKeyCriteria metaKeyCriteria = new CustomMetaKeyCriteria("page_title", Criteria.Equal);
query=new Query( CriteriaFactory.And(pubCriteria,metaKeyCriteria));
var j = query.ExecuteEntityQuery();
}
The list of items that i get after executing this query doesnot contains any property to fetch the key value and hence i will have to individuall call getmeta on each item id and fetch the value. Is there any alternate way using which i can get the values(to avoid so many calls to database as i believe each getmeta will hit the db)
Regards, Rajendra