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
應該寫給該程式碼的作者。