示例#1
0
        public override void UpdateDatabaseAfterUpdateSchema()
        {
            base.UpdateDatabaseAfterUpdateSchema();
            var anonymousRole = ObjectSpace.GetAnonymousPermissionPolicyRole("Anonymous");

            anonymousRole.GetAnonymousPermissionPolicyUser();
            anonymousRole.AddTypePermission <AnonymousObject>(SecurityOperations.FullAccess, SecurityPermissionState.Allow);
        }