Lightswitch에서 SecurityData 데이터 작업 공간에서 역할 이름의 이름을 바꾸는 방법은 무엇입니까?Lightswitch에서 역할 이름 바꾸기
//Lookup the role, and rename it, or create one if none exist.
var rolesQuery = this.DataWorkspace.SecurityData.Roles.Where(r => r.Name.StartsWith(oldRoleNameString)).Execute();
Role role = rolesQuery.Any() ? rolesQuery.Single() : this.DataWorkspace.SecurityData.Roles.AddNew();
role.Name = "OtherName";
InvalidOperationException이는 상태가 발생합니다 "가 읽기 전용 있기 때문에 재산 '이름'의 값을 설정할 수 없습니다."
그럼 올바른 방법은 무엇입니까?