From 15abe9bcf3335552472629c29d92f491ff50cdb4 Mon Sep 17 00:00:00 2001 From: "R. Richards" Date: Sat, 27 May 2017 18:01:14 -0500 Subject: [PATCH] added cache warming calls --- QIQO.Business.Engines/Engines/AccountTypeBusinessEngine.cs | 1 + QIQO.Business.Engines/Engines/AddressTypeBusinessEngine.cs | 1 + QIQO.Business.Engines/Engines/AttributeTypeBusinessEngine.cs | 1 + QIQO.Business.Engines/Engines/EntityTypeBusinessEngine.cs | 1 + QIQO.Business.Engines/Engines/OrderStatusBusinessEngine.cs | 1 + QIQO.Business.Engines/Engines/ProductTypeBusinessEngine.cs | 1 + 6 files changed, 6 insertions(+) diff --git a/QIQO.Business.Engines/Engines/AccountTypeBusinessEngine.cs b/QIQO.Business.Engines/Engines/AccountTypeBusinessEngine.cs index a452178..d8ca889 100644 --- a/QIQO.Business.Engines/Engines/AccountTypeBusinessEngine.cs +++ b/QIQO.Business.Engines/Engines/AccountTypeBusinessEngine.cs @@ -23,6 +23,7 @@ public AccountTypeBusinessEngine(IDataRepositoryFactory data_repo_fact, ICache c _cache = cache; _repo_acct_type = _data_repository_factory.GetDataRepository(); _acct_es = _entity_service_factory.GetEntityService(); + GetTypes(); } diff --git a/QIQO.Business.Engines/Engines/AddressTypeBusinessEngine.cs b/QIQO.Business.Engines/Engines/AddressTypeBusinessEngine.cs index 8ae405e..d137eb0 100644 --- a/QIQO.Business.Engines/Engines/AddressTypeBusinessEngine.cs +++ b/QIQO.Business.Engines/Engines/AddressTypeBusinessEngine.cs @@ -23,6 +23,7 @@ public AddressTypeBusinessEngine(IDataRepositoryFactory data_repo_fact, ICache c _cache = cache; _repo_addr_type = _data_repository_factory.GetDataRepository(); _addr_es = _entity_service_factory.GetEntityService(); + GetTypes(); } public AddressType GetTypeByKey(int type) diff --git a/QIQO.Business.Engines/Engines/AttributeTypeBusinessEngine.cs b/QIQO.Business.Engines/Engines/AttributeTypeBusinessEngine.cs index 0e75c0d..a4d2a10 100644 --- a/QIQO.Business.Engines/Engines/AttributeTypeBusinessEngine.cs +++ b/QIQO.Business.Engines/Engines/AttributeTypeBusinessEngine.cs @@ -23,6 +23,7 @@ public AttributeTypeBusinessEngine(IDataRepositoryFactory data_repo_fact, ICache _cache = cache; _repo_attr_type = _data_repository_factory.GetDataRepository(); _attr_type_es = _entity_service_factory.GetEntityService(); + GetTypes(); } public AttributeType GetTypeByKey(int type) diff --git a/QIQO.Business.Engines/Engines/EntityTypeBusinessEngine.cs b/QIQO.Business.Engines/Engines/EntityTypeBusinessEngine.cs index f9d6bdb..69c08d2 100644 --- a/QIQO.Business.Engines/Engines/EntityTypeBusinessEngine.cs +++ b/QIQO.Business.Engines/Engines/EntityTypeBusinessEngine.cs @@ -21,6 +21,7 @@ public EntityTypeBusinessEngine(IDataRepositoryFactory data_repo_fact, ICache ca { _cache = cache; _repo_ent_type = _data_repository_factory.GetDataRepository(); + GetTypes(); } public EntityType GetTypeByKey(int type) diff --git a/QIQO.Business.Engines/Engines/OrderStatusBusinessEngine.cs b/QIQO.Business.Engines/Engines/OrderStatusBusinessEngine.cs index 14a3f60..082ab08 100644 --- a/QIQO.Business.Engines/Engines/OrderStatusBusinessEngine.cs +++ b/QIQO.Business.Engines/Engines/OrderStatusBusinessEngine.cs @@ -22,6 +22,7 @@ public OrderStatusBusinessEngine(IDataRepositoryFactory data_repo_fact, ICache c _cache = cache; _order_status_repo = _data_repository_factory.GetDataRepository(); _order_status_es = _entity_service_factory.GetEntityService(); + GetStatuses(); } public bool DeleteStatus(OrderStatus status) diff --git a/QIQO.Business.Engines/Engines/ProductTypeBusinessEngine.cs b/QIQO.Business.Engines/Engines/ProductTypeBusinessEngine.cs index c7c862d..e132283 100644 --- a/QIQO.Business.Engines/Engines/ProductTypeBusinessEngine.cs +++ b/QIQO.Business.Engines/Engines/ProductTypeBusinessEngine.cs @@ -22,6 +22,7 @@ public ProductTypeBusinessEngine(IDataRepositoryFactory data_repo_fact, ICache c _cache = cache; _report_prod_type = _data_repository_factory.GetDataRepository(); _prod_es = _entity_service_factory.GetEntityService(); + GetTypes(); } public ProductType GetTypeByKey(int type)