public ProductsRepository(SmartBarContext context) { this.context = context ?? throw new ArgumentNullException(nameof(context)); }
public ProductsProvider(SmartBarContext context) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.context.ChangeTracker.AutoDetectChangesEnabled = false; this.context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking; }