Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: what's the best way/practice of handling many to many in C1

$
0
0
Unless you going to have > 10k articles to begin with, you will probably notice no difference compare to the other approach - having another indexed table for many to many relationship.
string tadId = tag.Id.ToString();
var articlesContaingTag = data.Get<IArticle>().Where(a => a.TagIds.IndexOf(tagId, StringComparison.OrdinalIgnoreCase) > -1).ToList();
Image

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>