ICSharpSnapshotGenerator.Generate 方法

定义

重载

Generate(String, IModel, IndentedStringBuilder)

生成用于创建 的代码 IModel

Generate(String, IModel, IndentedStringBuilder)

生成用于创建 的代码 IModel

Generate(String, IModel, IndentedStringBuilder)

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

生成用于创建 的代码 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)

参数

builderName
String

ModelBuilder变量名称。

model
IModel

模型。

stringBuilder
IndentedStringBuilder

将生成器代码添加到 。

适用于

Generate(String, IModel, IndentedStringBuilder)

生成用于创建 的代码 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)

参数

builderName
String

ModelBuilder变量名称。

model
IModel

模型。

stringBuilder
Microsoft.EntityFrameworkCore.Internal.IndentedStringBuilder

将生成器代码添加到 。

适用于