ForeignKeyAttribute 클래스

정의

관계의 외래 키로 사용되는 속성을 나타냅니다. 주석은 외래 키 속성에 배치되어 연결된 탐색 속성 이름을 지정하거나, 탐색 속성에 배치되어 연결된 외래 키 이름을 지정할 수 있습니다.

[System.AttributeUsage(System.AttributeTargets.Property | System.AttributeTargets.Field, AllowMultiple=false)]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1813:AvoidUnsealedAttributes", Justification="We want users to be able to extend this class")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments")]
public class ForeignKeyAttribute : Attribute
type ForeignKeyAttribute = class
    inherit Attribute
Public Class ForeignKeyAttribute
Inherits Attribute
상속
ForeignKeyAttribute
특성

생성자

ForeignKeyAttribute(String)

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

속성

Name

외래 키 속성에 배치되는 경우 연결된 탐색 속성의 이름이고, 탐색 속성에 배치되는 경우 연결된 외래 키의 이름입니다.

적용 대상