Much faster for grid refresh
This commit is contained in:
parent
a3542c53e2
commit
1fcacb9cfb
10 changed files with 30 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue