Much faster for grid refresh

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

No files matched your search

+2
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)
+2
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