コード例 #1
0
        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();
        }
コード例 #2
0
        private void FillPurchasePlaceHash(Profiler.PurchaseInfo purchaseInfo)
        {
            if (purchaseInfo == null)
            {
                return;
            }

            if (!string.IsNullOrEmpty(purchaseInfo.Place))
            {
                PurchasePlace.Add(new PurchasePlaceKey(purchaseInfo));
            }
        }