Rebel.Cms.Web.UpgradeHelper.UsersUpgraded C# (CSharp) Method

UsersUpgraded() public static method

public static UsersUpgraded ( ) : bool
return bool
        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;
            }
        }