private void LoadData() { foreach (var entity in dbContext.ChangeTracker.Entries()) { entity.Reload(); } var itemIds = dbContext.ItemDemandDetail.Where(x => x.ITEMDEMANDDETAIL_MASTER_ID == _itemDemandMasterId).Select(x => x.ITEMDEMANDDETAIL_ITEM_ID).ToList(); stockDetailBindingSource.DataSource = StockHelper.GetItemsStocksDetail(itemIds); }