private void InsertPurchasePlace() { ReportStart(_cache.PurchasePlace, "Purchase Place"); var currentProgress = 0; foreach (var item in _cache.PurchasePlace) { var key = item; var entity = new Entity.tPurchasePlace() { Place = key.Place, Type = key.Type, Website = key.Website, }; _context.tPurchasePlace.Add(entity); PurchasePlace.Add(key, entity); IncreaseCurrent(ref currentProgress); } ReportFinish(); }
private void FillPurchasePlaceHash(Profiler.PurchaseInfo purchaseInfo) { if (purchaseInfo == null) { return; } if (!string.IsNullOrEmpty(purchaseInfo.Place)) { PurchasePlace.Add(new PurchasePlaceKey(purchaseInfo)); } }