ForeignKeyAttribute(String) 생성자

정의

ForeignKeyAttribute 클래스의 새 인스턴스를 초기화합니다.

public:
 ForeignKeyAttribute(System::String ^ name);
public ForeignKeyAttribute (string name);
new System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute : string -> System.ComponentModel.DataAnnotations.Schema.ForeignKeyAttribute
Public Sub New (name As String)

매개 변수

name
String

연결된 탐색 속성 또는 둘 이상의 연결된 외래 키 속성의 이름입니다.

설명

외래 키 속성에 ForeignKey 특성을 추가하는 경우 연결된 탐색 속성 name 의 이름을 지정해야 합니다. 탐색 속성 nameForeignKey 특성을 추가하는 경우 하나 이상의 연결된 외신 키의 이름을 지정해야 합니다. 탐색 속성에 여러 개의 외래 키가 있는 경우 쉼표를 사용하여 외래 키 이름 목록을 구분합니다. 자세한 내용은 Code First 데이터 주석을 참조하세요.

적용 대상