We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a71601 + a961a7e commit a6f0829Copy full SHA for a6f0829
src/ef/Commands/MigrationsHasPendingModelChangesCommand.cs
@@ -1,12 +1,20 @@
1
// Licensed to the .NET Foundation under one or more agreements.
2
// The .NET Foundation licenses this file to you under the MIT license.
3
4
+using Microsoft.EntityFrameworkCore.Internal;
5
+using Microsoft.EntityFrameworkCore.Tools.Properties;
6
+
7
namespace Microsoft.EntityFrameworkCore.Tools.Commands;
8
9
internal partial class MigrationsHasPendingModelChangesCommand
10
{
11
protected override int Execute(string[] args)
12
13
+ if (new SemanticVersionComparer().Compare(EFCoreVersion, "8.0.0") < 0)
14
+ {
15
+ throw new CommandException(Resources.VersionRequired("8.0.0"));
16
+ }
17
18
using var executor = CreateExecutor(args);
19
20
executor.HasPendingModelChanges(Context!.Value());
0 commit comments