Freigeben über


CSharpSnapshotGenerator.Generate Methode

Definition

Überlädt

Generate(String, IModel, IndentedStringBuilder)

Generiert Code zum Erstellen eines IModel.

Generate(String, IModel, IndentedStringBuilder)

Generiert Code zum Erstellen eines IModel.

Generate(String, IModel, IndentedStringBuilder)

Generiert Code zum Erstellen eines IModel.

public virtual void Generate (string builderName, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder stringBuilder);
abstract member Generate : string * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
override this.Generate : string * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder -> unit
Public Overridable Sub Generate (builderName As String, model As IModel, stringBuilder As IndentedStringBuilder)

Parameter

builderName
String

Der ModelBuilder Variablenname.

model
IModel

Das Modell.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

Der Generatorcode wird hinzugefügt.

Implementiert

Gilt für:

Generate(String, IModel, IndentedStringBuilder)

Generiert Code zum Erstellen eines IModel.

public virtual void Generate (string builderName, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
public virtual void Generate (string modelBuilderName, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder stringBuilder);
abstract member Generate : string * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.Generate : string * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
abstract member Generate : string * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
override this.Generate : string * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Infrastructure.IndentedStringBuilder -> unit
Public Overridable Sub Generate (builderName As String, model As IModel, stringBuilder As IndentedStringBuilder)
Public Overridable Sub Generate (modelBuilderName As String, model As IModel, stringBuilder As IndentedStringBuilder)

Parameter

builderNamemodelBuilderName
String

Der ModelBuilder Variablenname.

model
IModel

Das Modell.

stringBuilder
IndentedStringBuilder

Der Generatorcode wird hinzugefügt.

Implementiert

Gilt für: