public static bool UsersUpgraded()
{
var hiveManager = DependencyResolver.Current.GetService<IHiveManager>();
using (var coreUow = hiveManager.OpenWriter<IContentStore>())
{
var ids = new[]
{
FixedHiveIds.UserProfileVirtualRoot, FixedHiveIds.MemberVirtualRoot,
FixedHiveIds.MemberProfileVirtualRoot, FixedHiveIds.MemberGroupVirtualRoot
};
return coreUow.Repositories.Get<TypedEntity>(true, ids).Count() == 4 &&
coreUow.Repositories.Schemas.Get<EntitySchema>(FixedHiveIds.RTMUserSchema) == null;
}
}