Пример #1
0
        public override ModelDifferenceObject InitializeMembers(string name, string applicationTitle, string uniqueName)
        {
            ModelDifferenceObject modelDifferenceObject = base.InitializeMembers(name, applicationTitle, uniqueName);

            UserDifferenceObjectBuilder.SetUp(this);
            return(modelDifferenceObject);
        }
Пример #2
0
        public override void CustomizeTypesInfo(ITypesInfo typesInfo)
        {
            base.CustomizeTypesInfo(typesInfo);

            if (RuntimeMode)
            {
                var securityComplex = Application.Security as ISecurityComplex;
                if (securityComplex != null)
                {
                    RoleDifferenceObjectBuilder.CreateDynamicRoleMember(securityComplex);
                }

                UserDifferenceObjectBuilder.CreateDynamicUserMember(Application.Security.UserType);
            }
            else
            {
                CreateDesignTimeCollection(typesInfo, typeof(UserModelDifferenceObject), "Users");
                CreateDesignTimeCollection(typesInfo, typeof(RoleModelDifferenceObject), "Roles");
            }
        }