コード例 #1
0
ファイル: Tags.cs プロジェクト: GrumpyTrev/DNLACore
        /// <summary>
        /// Get the Tags collection from storage
        /// </summary>
        /// <returns></returns>
        public static async Task GetDataAsync()
        {
            if (TagsCollection == null)
            {
                // Get the current set of tags and form the lookup tables
                TagsCollection = await DbAccess.LoadAsync <Tag>();

                NameLookup      = TagsCollection.ToDictionary(tag => tag.Name);
                ShortNameLookup = TagsCollection.ToDictionary(tag => tag.ShortName);
            }
        }