需要使用 API 客户端将成员分配给项目。我试过如下。但它不工作......
Oid projectId = Oid.FromToken("Scope:1571", metaModel);
Oid MemberID = Oid.FromToken("Member:1594", metaModel);
IAssetType scopeType = metaModel.GetAssetType("Scope");
IAttributeDefinition atbAssignMember = scopeType.GetAttributeDefinition("Members");
Asset newScope = services.New(scopeType, null);
newScope.SetAttributeValue(atbAssignMember, MemberID);
皮斯帮我做这件事。
谢谢