ICompiledModelCodeGenerator.GenerateModel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates code for compiled model metadata.
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)
Parameters
- model
- IModel
The source model.
The options to use during generation.
Returns
The generated model metadata files.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework