VisualBasicMigrationCodeGenerator.GenerateAnnotation 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
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 를 등록하여 전체 코드 생성기를 재정의할 필요 없이 사용자 지정 주석에 대한 코드를 생성할 수 있습니다.
적용 대상
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Entity Framework