Much faster for grid refresh

This commit is contained in:
Robert McRackan 2021-07-29 14:55:48 -04:00
parent a3542c53e2
commit 1fcacb9cfb
10 changed files with 30 additions and 21 deletions

View file

@ -6,6 +6,8 @@ using Microsoft.EntityFrameworkCore;
namespace DataLayer
{
// only library importing should use tracking. All else should be NoTracking.
// only library importing should directly query Book. All else should use LibraryBook
public static class BookQueries
{
public static Book GetBook_Flat_NoTracking(this LibationContext context, string productId)

View file

@ -4,6 +4,8 @@ using Microsoft.EntityFrameworkCore;
namespace DataLayer
{
// only library importing should use tracking. All else should be NoTracking.
// only library importing should directly query Book. All else should use LibraryBook
public static class LibraryQueries
{
//// tracking is a bad idea for main grid. it prevents anything else from updating entities unless getting them from the grid