CSharpMigrationCodeGenerator.WriteClassAttributes 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
產生類別屬性。
protected virtual void WriteClassAttributes(System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, bool designer);
abstract member WriteClassAttributes : System.Data.Entity.Migrations.Utilities.IndentedTextWriter * bool -> unit
override this.WriteClassAttributes : System.Data.Entity.Migrations.Utilities.IndentedTextWriter * bool -> unit
Protected Overridable Sub WriteClassAttributes (writer As IndentedTextWriter, designer As Boolean)
參數
- writer
- IndentedTextWriter
文字編輯器,用來加入產生的程式碼。
- designer
- Boolean
一個值,表示此類別是否正在為程式碼背後的檔案產生。