// ** CanManyTomanyRequest **
// Determines whether the entity can participate in a many-to-many relationship.
CanManyToManyRequest canManyToManyRequest = new CanManyToManyRequest
{
EntityName = "entity_logicalname"
};
CanManyToManyResponse canManyToManyResponse =
(CanManyToManyResponse)_service.Execute(canManyToManyRequest);
if (!canManyToManyResponse.CanManyToMany)
{
Console.WriteLine(
"Entity {0} can't participate in a many-to-many relationship.",
"entity_logicalname");
}