Developer forum

Forum » Development » Linking two items in a query

Linking two items in a query

Peter Terkildsen
Reply

Hi,

I have an article-item and a tag-item. I'm querying the article-item via the following code:

            using (var repository = ItemManager.Storage.Open(itemtype))
            {
                var query = new Query
                {
                    OrderBy = new OrderByCollection { new OrderBy(orderby, orderByDirection) },
                    Offset = offset,
                    Amount = amount,
                    Where = new RulesGroupCollection { rules }
                };

This works fine. Now, I'm trying to search in both the article-item and the tag-item at the same time. Is this possible or do I need to create a custom SQL-query instead?

Regards,

Peter


Replies

 

You must be logged in to post in the forum