From 740a10a4e3f85ffcfd26ec18263d4c78d4b14ecc Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 10 Sep 2013 14:56:00 -0400 Subject: de-normalize item by name data. create counts during library scan for fast access. --- MediaBrowser.Controller/Entities/Studio.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Controller/Entities/Studio.cs') diff --git a/MediaBrowser.Controller/Entities/Studio.cs b/MediaBrowser.Controller/Entities/Studio.cs index 57e560348..8bbf59173 100644 --- a/MediaBrowser.Controller/Entities/Studio.cs +++ b/MediaBrowser.Controller/Entities/Studio.cs @@ -1,4 +1,7 @@ - +using MediaBrowser.Model.Dto; +using System; +using System.Collections.Generic; + namespace MediaBrowser.Controller.Entities { /// @@ -6,6 +9,12 @@ namespace MediaBrowser.Controller.Entities /// public class Studio : BaseItem, IItemByName { + public Studio() + { + ItemCounts = new ItemByNameCounts(); + UserItemCounts = new Dictionary(); + } + /// /// Gets the user data key. /// @@ -14,5 +23,9 @@ namespace MediaBrowser.Controller.Entities { return "Studio-" + Name; } + + public ItemByNameCounts ItemCounts { get; set; } + + public Dictionary UserItemCounts { get; set; } } } -- cgit v1.2.3