whitespace

This commit is contained in:
Robert McRackan 2019-10-15 09:42:22 -04:00
parent 1b6c577044
commit a1ebe1b0c8
3 changed files with 44 additions and 17 deletions

View File

@ -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<Book> books, string productId)

View File

@ -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);
}
/// <summary>This is still IQueryable. YOU MUST CALL ToList() YOURSELF</summary>

View File

@ -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