Skip to content

Commit

Permalink
Make IScaffoldingModelFactory public
Browse files Browse the repository at this point in the history
  • Loading branch information
bricelam committed Jun 14, 2021
1 parent 24e5c6c commit 993d0f1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 26 deletions.
22 changes: 22 additions & 0 deletions src/EFCore.Design/Scaffolding/IScaffoldingModelFactory.cs
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 src/EFCore.Design/Scaffolding/Internal/IScaffoldingModelFactory.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Scaffolding;
using Microsoft.EntityFrameworkCore.Scaffolding.Internal;
using Microsoft.EntityFrameworkCore.Scaffolding.Metadata;
using Microsoft.EntityFrameworkCore.Scaffolding.Metadata.Internal;
using Microsoft.EntityFrameworkCore.TestUtilities;
Expand Down

0 comments on commit 993d0f1

Please # to comment.