Reverse engineer my models using EF Core Power tools issues

c# ef-power-tools entity-framework-6

Question

I am creating an app and deciding to use EF 6. I've only used EF Core up until now. I want to do database first and use the EF 6 power tools. However, when I download the EF 6 power tools and install it, I see an entry in Visual Studio showing EF Core Power tools. Why is that? I can't seem to install EF 6 Powertools from the NuGet Package Manager. I have to download the VSIX and install that.

Also, when I use the EF Core power tools to reverse engineer my models using EF Core Power tools, I get the following error: Entity red underline with error:

no overload for method e'Entity' takes 1 arguments.

Is this a problem with my fluent api syntax?

modelBuilder.Entity<MyEntity>(entity =>
        {
            entity.HasKey(e => e.MyEntity_ID);

            entity.Property(e => e.FieldName)
                .IsRequired()
                .HasMaxLength(6);
        });
1
0
2/2/2019 11:44:08 PM

Accepted Answer

For EF6, use the EF 6 Power Tools Community Edition which works with Visual Studio 2015 and newer.

"EF Core Power Tools" are designed to work with EF Core, not EF6.

3
2/3/2019 8:00:59 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow