public void ClearUnusedTags()
 {
     foreach (var tag in fullContext.Tags
              .Include("Posts")
              .Where(tag => tag.Posts.Count <= 0))
     {
         Log(tag.Name + " had no posts, and was deleted.");
         tagRepository.Delete(tag);
     }
     tagRepository.Commit();
     Log("Done");
 }
Beispiel #2
0
 public void Commit()
 {
     _innerRepository.Commit();
 }