共用方式為


ICompiledModelCodeGenerator.GenerateModel 方法

定義

產生已編譯模型中繼資料的程式碼。

public System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedFile> GenerateModel (Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Scaffolding.CompiledModelCodeGenerationOptions options);
abstract member GenerateModel : Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Scaffolding.CompiledModelCodeGenerationOptions -> System.Collections.Generic.IReadOnlyCollection<Microsoft.EntityFrameworkCore.Scaffolding.ScaffoldedFile>
Public Function GenerateModel (model As IModel, options As CompiledModelCodeGenerationOptions) As IReadOnlyCollection(Of ScaffoldedFile)

參數

model
IModel

來源模型。

options
CompiledModelCodeGenerationOptions

產生期間要使用的選項。

傳回

產生的模型中繼資料檔案。

適用於