Share via


ICSharpSnapshotGenerator.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)

Source:
ICSharpSnapshotGenerator.cs
Source:
ICSharpSnapshotGenerator.cs
Source:
ICSharpSnapshotGenerator.cs

Generates code for creating an IModel.

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

Parameters

builderName
String

The ModelBuilder variable name.

model
IModel

The model.

stringBuilder
IndentedStringBuilder

The builder code is added to.

Applies to

Generate(String, IModel, IndentedStringBuilder)

Generates code for creating an IModel.

public 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
Public 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.

Applies to