|
|
@ -44,8 +44,8 @@ namespace Volo.Abp.FeatureManagement
|
|
|
|
|
|
|
|
|
|
|
|
public virtual async Task DeleteAsync(string name, string providerName, string providerKey)
|
|
|
|
public virtual async Task DeleteAsync(string name, string providerName, string providerKey)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var featureValue = await FeatureValueRepository.FindAsync(name, providerName, providerKey);
|
|
|
|
var featureValues = await FeatureValueRepository.FindAllAsync(name, providerName, providerKey);
|
|
|
|
if (featureValue != null)
|
|
|
|
foreach (var featureValue in featureValues)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
await FeatureValueRepository.DeleteAsync(featureValue);
|
|
|
|
await FeatureValueRepository.DeleteAsync(featureValue);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -78,4 +78,4 @@ namespace Volo.Abp.FeatureManagement
|
|
|
|
return FeatureValueCacheItem.CalculateCacheKey(name, providerName, providerKey);
|
|
|
|
return FeatureValueCacheItem.CalculateCacheKey(name, providerName, providerKey);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|