-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add commands to create compiled models (#24906)
Warn when using and old model Enable NRT-enabled code generation Remove the need to call FinalizeModel before UseModel Split out the boilerplate part of the compiled model Fixes #1906
- Loading branch information
1 parent
a60795c
commit 5540433
Showing
59 changed files
with
1,231 additions
and
326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System.Collections.Generic; | ||
using Microsoft.EntityFrameworkCore.Metadata; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Scaffolding | ||
{ | ||
/// <summary> | ||
/// Used to scaffold a compiled model from a model. | ||
/// </summary> | ||
public interface ICompiledModelScaffolder | ||
{ | ||
/// <summary> | ||
/// Scaffolds a compiled model from a model and saves it to disk. | ||
/// </summary> | ||
/// <param name="model"> The model. </param> | ||
/// <param name="outputDir"> The output directory. </param> | ||
/// <param name="options"> The options to use when generating code for the model. </param> | ||
/// <returns> The scaffolded model files. </returns> | ||
IReadOnlyList<string> ScaffoldModel( | ||
IModel model, | ||
string outputDir, | ||
CompiledModelCodeGenerationOptions options); | ||
} | ||
} |
Oops, something went wrong.