語言

CSharpMigrationCodeGenerator.WriteClassAttributes 方法

定義

產生類別屬性。

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

一個值,表示此類別是否正在為程式碼背後的檔案產生。

適用於