forked from dotnet/efcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make IScaffoldingModelFactory public
Fixes dotnet#23049
- Loading branch information
Showing
3 changed files
with
22 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// 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 Microsoft.EntityFrameworkCore.Metadata; | ||
using Microsoft.EntityFrameworkCore.Scaffolding.Metadata; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Scaffolding | ||
{ | ||
/// <summary> | ||
/// Used to create an <see cref="IModel"/> from a <see cref="DatabaseModel"/>. | ||
/// </summary> | ||
public interface IScaffoldingModelFactory | ||
{ | ||
/// <summary> | ||
/// Creates an <see cref="IModel"/> from a <see cref="DatabaseModel"/>. | ||
/// </summary> | ||
/// <param name="databaseModel"> The database model. </param> | ||
/// <param name="options"> The options to use while creating the model. </param> | ||
/// <returns> The model. </returns> | ||
IModel Create(DatabaseModel databaseModel, ModelReverseEngineerOptions options); | ||
} | ||
} |
25 changes: 0 additions & 25 deletions
25
src/EFCore.Design/Scaffolding/Internal/IScaffoldingModelFactory.cs
This file was deleted.
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