다음을 통해 공유


PropertyBuilder<TProperty>.HasAnnotation(String, Object) 메서드

정의

속성에 주석을 추가하거나 업데이트합니다. 에 지정된 annotation 키가 있는 주석이 이미 있으면 해당 값이 업데이트됩니다.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasAnnotation (string annotation, object value);
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasAnnotation (string annotation, object? value);
override this.HasAnnotation : string * obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
Public Overridable Function HasAnnotation (annotation As String, value As Object) As PropertyBuilder(Of TProperty)

매개 변수

annotation
String

추가하거나 업데이트할 주석의 키입니다.

value
Object

주석에 저장할 값입니다.

반환

동일한 작성기가 여러 구성 호출을 연결할 수 있도록 instance.

적용 대상