diff --git a/DataLayer/UNTESTED/QueryObjects/BookQueries.cs b/DataLayer/UNTESTED/QueryObjects/BookQueries.cs index e986b267..8a9606d7 100644 --- a/DataLayer/UNTESTED/QueryObjects/BookQueries.cs +++ b/DataLayer/UNTESTED/QueryObjects/BookQueries.cs @@ -12,17 +12,17 @@ namespace DataLayer { using var context = LibationContext.Create(); return context -.Books -.Count(b => !b.HasBookDetails); + .Books + .Count(b => !b.HasBookDetails); } public static Book GetBook_Flat_NoTracking(string productId) { using var context = LibationContext.Create(); return context -.Books -.AsNoTracking() -.GetBook(productId); + .Books + .AsNoTracking() + .GetBook(productId); } public static Book GetBook(this IQueryable books, string productId) diff --git a/DataLayer/UNTESTED/QueryObjects/LibraryQueries.cs b/DataLayer/UNTESTED/QueryObjects/LibraryQueries.cs index f3a6aa22..a3e047c2 100644 --- a/DataLayer/UNTESTED/QueryObjects/LibraryQueries.cs +++ b/DataLayer/UNTESTED/QueryObjects/LibraryQueries.cs @@ -10,19 +10,19 @@ namespace DataLayer { using var context = LibationContext.Create(); return context -.Library -.AsNoTracking() -.GetLibrary() -.ToList(); + .Library + .AsNoTracking() + .GetLibrary() + .ToList(); } public static LibraryBook GetLibraryBook_Flat_NoTracking(string productId) { using var context = LibationContext.Create(); return context -.Library -.AsNoTracking() -.GetLibraryBook(productId); + .Library + .AsNoTracking() + .GetLibraryBook(productId); } /// This is still IQueryable. YOU MUST CALL ToList() YOURSELF diff --git a/__TODO.txt b/__TODO.txt index 8a7f110a..d39909b7 100644 --- a/__TODO.txt +++ b/__TODO.txt @@ -1,9 +1,25 @@ --- begin LEGACY --------------------------------------------------------------------------------------------------------------------- -create legacy space to hold legacy code +-- begin CONFIG FILES --------------------------------------------------------------------------------------------------------------------- +try saving back into config +https://stackoverflow.com/questions/40970944/how-to-update-values-into-appsetting-json -scraping code -"legacy inAudible wire-up code" --- end LEGACY --------------------------------------------------------------------------------------------------------------------- +move ConsoleConfigDemo into TestCommon + +multiple files named "appsettings.json" will overwrite each other + +libraries should avoid this generic name. ok for applications to use them + +LibationSettings.json => appsettings.json +also, move these settings into a strong type +re-create my shortcuts and bak + +Audible API +C:\Dropbox\Dinah's folder\coding\_NET\Visual Studio 2019\audible api\AudibleApi\_Tests\AudibleApi.Tests\bin\Debug\netcoreapp3.0\L1 +C:\Dropbox\Dinah's folder\coding\_NET\Visual Studio 2019\audible api\AudibleApi\_Tests\AudibleApi.Tests\bin\Debug\netcoreapp3.0\ComputedTestValues + 14+ json files +these can go in a shared solution folder +BasePath => recursively search directories upward-only until fild dir with .sln +from here can set up a shared dir anywhere. use recursive upward search to find it. store shared files here. eg: identityTokens.json, ComputedTestValues +-- end CONFIG FILES --------------------------------------------------------------------------------------------------------------------- -- begin REPLACE SCRAPING WITH API --------------------------------------------------------------------------------------------------------------------- incl episodes. eg: "Bill Bryson's Appliance of Science" @@ -47,6 +63,13 @@ ADDED PROJECT REFERENCES DTOs -- end REPLACE SCRAPING WITH API --------------------------------------------------------------------------------------------------------------------- +-- begin LEGACY --------------------------------------------------------------------------------------------------------------------- +create legacy space to hold legacy code + +scraping code +"legacy inAudible wire-up code" +-- end LEGACY --------------------------------------------------------------------------------------------------------------------- + -- begin CLEAN UP ARCHITECTURE --------------------------------------------------------------------------------------------------------------------- my ui sucks. it's also tightly coupled with biz logic. can't replace ui until biz logic is extracted and loosely. remove all biz logic from presentation/winforms layer -- end CLEAN UP ARCHITECTURE --------------------------------------------------------------------------------------------------------------------- @@ -94,6 +117,10 @@ directly call ffmpeg (decrypt only) 39 sec decrypt -- end DECRYPTING --------------------------------------------------------------------------------------------------------------------- +-- begin ENHANCEMENT, UI: LONG RUNNING TASKS --------------------------------------------------------------------------------------------------------------------- +long running tasks are appropriately async. however there's no way for the user to see that the task is running (vs nothing happened) except to wait and see if the final notification ever comes +-- end ENHANCEMENT, UI: LONG RUNNING TASKS --------------------------------------------------------------------------------------------------------------------- + -- begin ENHANCEMENT, PERFORMANCE: TAGS --------------------------------------------------------------------------------------------------------------------- tag edits still take forever and block UI unlikely to be an issue with file write. in fact, should probably roll back this change