ICompiledModelScaffolder.ScaffoldModel 方法

定义

从模型搭建已编译模型的基架并将其保存到磁盘。

public System.Collections.Generic.IReadOnlyList<string> ScaffoldModel (Microsoft.EntityFrameworkCore.Metadata.IModel model, string outputDir, Microsoft.EntityFrameworkCore.Scaffolding.CompiledModelCodeGenerationOptions options);
abstract member ScaffoldModel : Microsoft.EntityFrameworkCore.Metadata.IModel * string * Microsoft.EntityFrameworkCore.Scaffolding.CompiledModelCodeGenerationOptions -> System.Collections.Generic.IReadOnlyList<string>
Public Function ScaffoldModel (model As IModel, outputDir As String, options As CompiledModelCodeGenerationOptions) As IReadOnlyList(Of String)

参数

model
IModel

模型。

outputDir
String

输出目录。

options
CompiledModelCodeGenerationOptions

生成模型代码时要使用的选项。

返回

基架模型文件。

适用于