question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The annotation 'SqlServer:Include' cannot be added because an annotation with the same name already exists.

See original GitHub issue

Can`t reverse engineer. With the previous version, I was able to do it.

Steps to reproduce

Try to reverse engineer

Further technical details

EF Core Power Tools version: 2.4.182

Database engine: (Sql server) Visual Studio version: (Visual Studio 2019)

Stack trace: System.Exception: Reverse engineer error: System.InvalidOperationException: The annotation ‘SqlServer:Include’ cannot be added because an annotation with the same name already exists. at Microsoft.EntityFrameworkCore.Infrastructure.Annotatable.AddAnnotation(String name, Annotation annotation) at Microsoft.EntityFrameworkCore.Infrastructure.Annotatable.AddAnnotation(String name, Object value) at Microsoft.EntityFrameworkCore.Infrastructure.Annotatable.Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable.AddAnnotation(String name, Object value) at Microsoft.EntityFrameworkCore.MutableAnnotatableExtensions.AddAnnotations(IMutableAnnotatable annotatable, IEnumerable1 annotations) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitIndex(EntityTypeBuilder builder, DatabaseIndex index) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitIndexes(EntityTypeBuilder builder, ICollection1 indexes) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitTable(ModelBuilder modelBuilder, DatabaseTable table) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitTables(ModelBuilder modelBuilder, ICollection`1 tables) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitDatabaseModel(ModelBuilder modelBuilder, DatabaseModel databaseModel) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.Create(DatabaseModel databaseModel, Boolean useDatabaseNames) at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineerScaffolder.ScaffoldModel(String connectionString, DatabaseModelFactoryOptions databaseOptions, ModelReverseEngineerOptions modelOptions, ModelCodeGenerationOptions codeOptions) at ReverseEngineer20.ReverseEngineer.ReverseEngineerRunner.GenerateFiles(ReverseEngineerCommandOptions reverseEngineerOptions) in C:\Code\EFCorePowerTools\src\GUI\RevEng.Core\ReverseEngineerRunner.cs:line 94 at efreveng.Program.Main(String[] args) in C:\Code\EFCorePowerTools\src\GUI\efreveng\Program.cs:line 62

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikEJcommented, Sep 18, 2020

Build .216 is there now

0reactions
ErikEJcommented, Sep 18, 2020

Thanks for the heads up, I will publish an updated build to Marketplace with the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The annotation 'SqlServer:Include' was not found. Ensure ...
System.InvalidOperationException: The annotation 'SqlServer:Include' was not found. Ensure that the annotation has been added. at Microsoft.
Read more >
EF Core - How to add indexes
Shows how to add indexes using EF Core: single column index, multiple column unique index, and an index that has included columns.
Read more >
The Role Manager feature has not been enabled-Asp.Net-Mvc
After adding the "roleManager" line shown above to the web.config, I could add a new role and add a user to the role...
Read more >
20767C
“Authorized Training Session” means the instructor-led training class using Microsoft Instructor-Led. Courseware conducted by a Trainer at or through an ...
Read more >
xml data type and columns (SQL Server)
By using an annotated schema (AXSD), the XML is decomposed into columns in one or more tables. This preserves fidelity of the data...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found