메타데이터를 사용하여 엔터티 다이어그램 생성

 

게시 날짜: 2017년 1월

적용 대상: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

메타데이터의 시각적 표현은 매우 유용할 수 있으며, 특히 시스템에서 엔터티 간의 관계를 설명하려고 할 때 유용합니다.Microsoft Dynamics 365(온라인 및 온-프레미스)에 제공된 메타데이터 다이어그램 샘플 코드를 사용하여 엔터티 관계 다이어그램을 생성할 수 있습니다. 한 엔터티의 관계를 보여 주는 간단한 다이어그램 또는 사용자 지정 및 시스템 엔터티를 포함하여 수많은 관련 엔터티가 포함된 복잡한 다이어그램을 만들 수 있습니다.

이 항목의 내용

엔터티 다이어그램의 관계

다이어그램 정보

메타데이터 다이어그램 도구를 사용하여 엔터티 다이어그램 생성

엔터티 다이어그램의 관계

다음 예제에서는 Microsoft Dynamics 365에서 만든 새로운 두 사용자 지정 엔터티를 보여 줍니다. 첫 번째 엔터티는 은행 계좌를 나타내고 두 번째 엔터티는 안전 금고를 나타냅니다. 다음 엔터티 다이어그램은 메타데이터 다이어그램 도구를 사용하여 생성되었습니다. 시스템에서 new_bankaccount 엔터티, new_safedepositbox 엔터티 및 기타 엔터티 간의 관계를 보여 줍니다. 표시되는 이름은 논리 엔터티 이름입니다. 동일한 두 엔터티 간에 관계가 여러 개 있을 경우 다이어그램에서 한 줄로 간단하게 그려집니다.

사용자 지정 엔터티에 대한 엔터티 관계 다이어그램

다음 표에서는 기본 엔터티가 은행 계좌 또는 안전 금고인 일대다 관계를 보여 줍니다.

관계 스키마 이름

참조하는 엔터티

new_bankaccount_ActivityPointers

activitypointer

new_bankaccount_Appointments

약속

new_bankaccount_Emails

전자 메일

new_bankaccount_Faxes

fax

new_bankaccount_Letters

letter

new_bankaccount_PhoneCalls

phonecall

new_bankaccount_ServiceAppointments

serviceappointment

new_bankaccount_Tasks

작업

new_bankaccount_RecurringAppointmentMasters

recurringappointmentmaster

new_bankaccount_DuplicateMatchingRecord

duplicaterecord

new_bankaccount_DuplicateBaseRecord

duplicaterecord

new_bankaccount_Annotations

annotation

new_bankaccount_AsyncOperations

asyncoperation

new_bankaccount_UserEntityInstanceDatas

userentityinstancedata

new_bankaccount_ProcessSession

processsession

new_bankaccount_BulkDeleteFailures

bulkdeletefailure

new_bankaccount_PrincipalObjectAttributeAccesses

principalobjectattributeaccess

new_new_bankaccount_new_safedepositbox

new_safedepositbox

new_safedepositbox_ActivityPointers

activitypointer

new_safedepositbox_Appointments

약속

new_safedepositbox_Emails

전자 메일

new_safedepositbox_Faxes

fax

new_safedepositbox_Letters

letter

new_safedepositbox_PhoneCalls

phonecall

new_safedepositbox_ServiceAppointments

serviceappointment

new_safedepositbox_Tasks

작업

new_safedepositbox_RecurringAppointmentMasters

recurringappointmentmaster

new_safedepositbox_DuplicateMatchingRecord

duplicaterecord

new_safedepositbox_DuplicateBaseRecord

duplicaterecord

new_safedepositbox_Annotations

annotation

new_safedepositbox_AsyncOperations

asyncoperation

new_safedepositbox_UserEntityInstanceDatas

userentityinstancedata

new_safedepositbox_ProcessSession

processsession

new_safedepositbox_BulkDeleteFailures

bulkdeletefailure

new_safedepositbox_PrincipalObjectAttributeAccesses

principalobjectattributeaccess

다음 표에서는 기본 엔터티가 은행 계좌 또는 안전 금고인 대대일 관계를 보여 줍니다.

관계 스키마 이름

참조되는 엔터티

lk_new_bankaccount_createdby

systemuser

lk_new_bankaccount_createdonbehalfby

systemuser

lk_new_bankaccount_modifiedby

systemuser

lk_new_bankaccount_modifiedonbehalfby

systemuser

user_new_bankaccount

systemuser

team_new_bankaccount

owner_new_bankaccount

담당자

business_unit_new_bankaccount

businessunit

new_account_new_bankaccount

거래처

lk_new_safedepositbox_createdby

systemuser

lk_new_safedepositbox_createdonbehalfby

systemuser

lk_new_safedepositbox_modifiedby

systemuser

lk_new_safedepositbox_modifiedonbehalfby

systemuser

user_new_safedepositbox

systemuser

team_new_safedepositbox

owner_new_safedepositbox

담당자

business_unit_new_safedepositbox

businessunit

new_new_bankaccount_new_safedepositbox

new_bankaccount

다이어그램에 표시된 거래처 엔터티는 은행 고객을 나타냅니다. 은행 고객은 당좌 예금과 저축 예금과 같은 여러 개의 은행 계좌 및 안전 금고를 열 수 있습니다. 다음은 은행 계좌와 고객 간 및 안전 금고와 고객 간의 다대일 관계 유형의 예제입니다. 은행 계좌에 작업, 전자 메일, 약속 등의 여러 활동을 연결할 수 있습니다. 은행 계좌 또는 안전 금고에 대한 추가 정보를 제공하려면 메모와 첨부 파일을 사용할 수 있습니다.

다이어그램 정보

SDK 설명서의 엔터티 기능을 설명하는 항목에서 많은 시스템 엔터티에 대한 다이어그램을 찾을 수 있습니다. 다이어그램의 각 상자에서 첫째 줄의 굵은 텍스트는 엔터티의 이름입니다. 다음 줄에는 해당 엔터티에 대한 관계를 정의하는 데 사용되는 특성의 이름이 들어 있습니다. 도구는 조직, 사업부 및 사용자(시스템 사용자) 엔터티에 대한 관계를 보여 주는 줄은 생성하지 않습니다. 이는 다이어그램을 간소화하기 위해 수행됩니다. 색상 코딩은 각 엔터티의 담당자 관계를 나타내는 데 사용됩니다. 다음 다이어그램에서는 색상 코딩에 대해 설명합니다.

CRM 엔터티 관계 다이어그램의 다이어그램 키

메타데이터 다이어그램 도구를 사용하여 엔터티 다이어그램 생성

프로그래밍 방식으로 Microsoft Office Visio 메타데이터 다이어그램을 생성하는 샘플 코드를 사용하려면 SDK 패키지에 있는 SDK\SampleCode\CS\Metadata\Diagram 솔루션 중 하나를 빌드하고 실행합니다. 폴더에는 Readme 파일 및 파일 사용에 대한 지침이 들어 있습니다. 코드 샘플은 엔터티 관계 다이어그램을 만드는 독립 실행형 콘솔 응용 프로그램입니다. 프로그램에는 Microsoft Office Visio가 필요합니다.

명령 프롬프트에서 프로그램을 실행할 수 있습니다. 명령줄 인수로 다이어그램에 포함시킬 엔터티를 단순히 나열합니다. 요청한 각 엔터티에 대한 모든 관계를 표시하는 데 필요한 다른 엔터티를 다이어그램에 포함할 수 있습니다.new_bankaccount 및 new_safedepositbox 엔터티에 대한 관계를 보여 주는 다이어그램을 생성하려면 다음 명령을 사용합니다.

MetadataDiagramConsole.exe new_bankaccount new_safedepositbox

생성된 Visio 파일의 이름은 new_bankaccount.vsd입니다.

참고

도구는 Visio 파일의 이름으로 명령줄에서 첫 번째 엔터티의 이름을 사용합니다. 다음 두 명령을 실행하면 두 번째 명령은 첫 번째에서 생성된 다이어그램을 덮어씁니다.Visio 파일이 "new_bankaccount.vsd"라는 동일한 이름을 사용하기 때문입니다.

MetadataDiagramConsole.exe new_bankaccount

MetadataDiagramConsole.exe new_bankaccount new_safedepositbox

생성된 다이어그램 파일을 덮어쓰지 않으려면 두 번째 명령을 실행하기 전에 첫 번째 파일 이름을 변경해야 합니다.

참고 항목

Microsoft Dynamics 365에서 엔터티에 대한 소개
Dynamics 365 메타데이터에서 조직 서비스 사용
엔터티 다이어그램에 대한 키
CRM 2015 엔터티 관계 다이어그램

Microsoft Dynamics 365

© 2017 Microsoft. All rights reserved. 저작권 정보