var relationType = new RelationType(new Guid("A7CE7344-9A2E-4567-8BC9-8901BB9B9F5B"),new Guid("F65E0D53-E0A9-46D9-94D7-EA5009E48D55"), "relationTypeAlias", "Relation Type Name"){IsBidirectional = true};
ApplicationContext.Services.RelationService.Save(relationType);
var relationService = applicationContext.Services.RelationService;
var connectionRelation =
relationService.GetRelationTypeByAlias("alias");
if (connectionRelation == null)
{
var relationType = new RelationType(new Guid("39eb0f98-b348-42a1-8662-e7eb18487560"), new Guid("39eb0f98-b348-42a1-8662-e7eb18487560"), "alias", "name") { IsBidirectional = false };
relationService.Save(relationType);
}
How can I create RelationType with code?
Found this code -
Is it relevant? How to get these guids?
Alex
This is the way it works.
is working on a reply...