Beispiel #1
0
        public virtual void Update(DynamicProperty dynamicProperty)
        {
            CheckDynamicProperty(dynamicProperty);

            using (var uow = _unitOfWorkManager.Begin(TransactionScopeOption.RequiresNew))
            {
                _dynamicPropertyStore.Update(dynamicProperty);
                uow.Complete();
            }

            DynamicPropertyCache.Set(dynamicProperty.Id, dynamicProperty);
        }
        public virtual DynamicProperty Update(DynamicProperty dynamicProperty)
        {
            CheckDynamicProperty(dynamicProperty);

            using (var uow = _unitOfWorkManager.Begin(TransactionScopeOption.RequiresNew))
            {
                _dynamicPropertyStore.Update(dynamicProperty);
                uow.Complete();
            }

            var cacheKey = GetCacheKey(dynamicProperty.Id, dynamicProperty.TenantId);

            DynamicPropertyCache.Set(cacheKey, dynamicProperty);

            return(dynamicProperty);
        }