다음을 통해 공유


VisualBasicMigrationCodeGenerator.GenerateAnnotation 메서드

정의

null일 수 있는 지정된 주석 값에 대한 코드를 생성합니다. 기본 동작은 가 등록된 경우 를 AnnotationCodeGenerator 사용하고, 그렇지 않으면 주석 값에서 ToString을 호출하는 것입니다.

protected internal virtual void GenerateAnnotation (string name, object annotation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
abstract member GenerateAnnotation : string * obj * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
override this.GenerateAnnotation : string * obj * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
Protected Friend Overridable Sub GenerateAnnotation (name As String, annotation As Object, writer As IndentedTextWriter)

매개 변수

name
String

코드가 필요한 주석의 이름입니다.

annotation
Object

생성할 주석 값입니다.

writer
IndentedTextWriter

생성된 코드를 작성해야 하는 작성기입니다.

설명

AnnotationCodeGenerator 를 등록하여 전체 코드 생성기를 재정의할 필요 없이 사용자 지정 주석에 대한 코드를 생성할 수 있습니다.

적용 대상