CSharpSnapshotGenerator.Generate Method

Definition

Overloads

Generate(String, IModel, IndentedStringBuilder)

Generates code for creating an IModel.

Generate(String, IModel, IndentedStringBuilder)

Generates code for creating an IModel.

Generate(String, IModel, IndentedStringBuilder)

Generates code for creating an 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)

Parameters

builderName
String

The ModelBuilder variable name.

model
IModel

The model.

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

The builder code is added to.

Implements

Applies to

Generate(String, IModel, IndentedStringBuilder)

Generates code for creating an 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)

Parameters

builderNamemodelBuilderName
String

The ModelBuilder variable name.

model
IModel

The model.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Implements

Applies to