Dynamics crm 2011 查看Dynamic CRM 2011中的所有实体关系

Dynamics crm 2011 查看Dynamic CRM 2011中的所有实体关系,dynamics-crm-2011,Dynamics Crm 2011,是否可以在动态CRM 2011解决方案中查看实体的所有映射?我知道我可以从“定制系统”部分按实体查看它们,但我想知道它们是否存储在数据库的特定部分。我查阅了几份MS文档,但没有找到我们需要的东西。我需要它,以便(希望)创建关系图。查看关系表: select relationship.Name, SecondaryEntity = referencing.Name, LookupField = referencingAttribute.Name, PrimaryEntity = reference

是否可以在动态CRM 2011解决方案中查看实体的所有映射?我知道我可以从“定制系统”部分按实体查看它们,但我想知道它们是否存储在数据库的特定部分。我查阅了几份MS文档,但没有找到我们需要的东西。我需要它,以便(希望)创建关系图。

查看关系表:

select relationship.Name, SecondaryEntity = referencing.Name, LookupField = referencingAttribute.Name, PrimaryEntity = referenced.name, PrimaryEntityKey = referencedAttribute.Name, relationship.* 
from [Database]..RelationshipView relationship
join [Database]..EntityView referencing on relationship.ReferencingEntityId = referencing.EntityId
join [Database]..EntityView referenced on relationship.ReferencedEntityId = referenced.EntityId
join [Database]..AttributeView referencingAttribute on relationship.ReferencingAttributeId = referencingAttribute.AttributeId
join [Database]..AttributeView referencedAttribute on relationship.ReferencedAttributeId = referencedAttribute.AttributeId
--where SolutionId in ()    --Filter by the solution(s) you are interested in 

这是微软发布的实体关系图的链接。