private List<EntityKey> GetAllCategoryKeys()
{
var keys = new List<EntityKey>();
foreach (var category in Categories)
{
keys.Add(new EntityKey(typeof(Category), category.Id));
foreach (var descendant in category.Descendants())
{
keys.Add(new EntityKey(typeof(Category), descendant.Id));
}
}
return keys;
}