I have created a custom subclass of TopicQuery and need to know how to pass attributes to the sql below:
public class MyTopicQuery : TopicQuery
{ public override string GetQuery() { return @"select topic FROM EPiServer.Community.Forum.Topic as topic where topic['TheAttributeName'] = '" + ?? +"'";
} }
-------------------------------------
This is how I pass the attribute parameter
.
.
var rq = new MyTopicQuery(); var MyCriteria = new StringCriterion();