AnnotationCodeGenerator.Generate(String, Object, IndentedTextWriter) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
實作這個方法,以針對指定的注釋值產生程式碼。
public abstract void Generate(string annotationName, object annotation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer);
abstract member Generate : string * obj * System.Data.Entity.Migrations.Utilities.IndentedTextWriter -> unit
Public MustOverride Sub Generate (annotationName As String, annotation As Object, writer As IndentedTextWriter)
參數
- annotationName
- String
要為其產生值之批註的名稱。
- annotation
- Object
註釋值。
- writer
- IndentedTextWriter
應該寫入產生的程式碼寫入器。