예제 #1
0
 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");
 }
예제 #2
0
 public void Commit()
 {
     _innerRepository.Commit();
 }