ErikEJ / EFCorePowerTools

Entity Framework Core Power Tools - reverse engineering, migrations and model visualization in Visual Studio & CLI
MIT License
2.17k stars 297 forks source link

Update Migration Tool and Modelling to EF Core 2.2 #142

Closed doggy8088 closed 5 years ago

doggy8088 commented 5 years ago

Steps to reproduce

  1. Use Reverse Engineer to generate models & dbcontext
  2. Use Migrations Tool to generate migrations, but show up the following error:

    image

Further technical details

EF Core Power Tools version: (found in About dialog - blue questionmark icon on context menu)

Version 1.0.664.0

SQL Server Compact 4.0 in GAC - No
SQL Server Compact 4.0 DbProvider - No

SQL Server Compact 4.0 DDEX provider - No
SQL Server Compact 4.0 Simple DDEX provider - Yes

SQLite ADO.NET Provider included: 1.0.107.0
SQLite EF6 DbProvider in GAC - No

System.Data.SQLite DDEX provider - No
SQLite Simple DDEX provider - Yes

My csproj file content:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp2.1</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="ErikEJ.EntityFrameworkCore.DgmlBuilder" Version="2.1.1" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.1.4" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.1.4" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="2.1.4">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>

</Project>

Database engine: SQL Server 13.0.4001

Visual Studio version: Visual Studio 2017 15.9.3

ErikEJ commented 5 years ago

Maybe target x86 ?

doggy8088 commented 5 years ago

@ErikEJ I have a repro project. https://github.com/doggy8088/EFPTRepro

It still can't use Migrations Tool (preview).

image

image

It's targeting Any CPU.

image

ErikEJ commented 5 years ago

Ah! Migration Tool does not support EF Core 2.2 (yet)

The-DevOps-Guy commented 5 years ago

Hi there... What would be the ETA sir.

doggy8088 commented 5 years ago

@ErikEJ I downgrade to ASP.NET Core 2.1. It still failed.

image

ErikEJ commented 5 years ago

Using your repro project??

ErikEJ commented 5 years ago

Otherwise a duplicate of #15 perhaps?

doggy8088 commented 5 years ago

@ErikEJ Another repo here: https://github.com/doggy8088/EFCoreEagerLoadingDemo

This is not related to #15