Skip to content

Commit a6f0829

Browse files
author
msftbot[bot]
authored
Merge pull request #31635 from dotnet-maestro-bot/merge/release/8.0-to-main
[automated] Merge branch 'release/8.0' => 'main'
2 parents 3a71601 + a961a7e commit a6f0829

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ef/Commands/MigrationsHasPendingModelChangesCommand.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

4+
using Microsoft.EntityFrameworkCore.Internal;
5+
using Microsoft.EntityFrameworkCore.Tools.Properties;
6+
47
namespace Microsoft.EntityFrameworkCore.Tools.Commands;
58

69
internal partial class MigrationsHasPendingModelChangesCommand
710
{
811
protected override int Execute(string[] args)
912
{
13+
if (new SemanticVersionComparer().Compare(EFCoreVersion, "8.0.0") < 0)
14+
{
15+
throw new CommandException(Resources.VersionRequired("8.0.0"));
16+
}
17+
1018
using var executor = CreateExecutor(args);
1119

1220
executor.HasPendingModelChanges(Context!.Value());

0 commit comments

Comments
 (0)