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

                IdLookup = ArtistCollection.ToDictionary(art => art.Id);
            }
        }