Does Rider support EF Core commands by project context menu?
For .NET Framework 4.8 it was enough to install 'EntityFramework' package. For .NET 6 I don't see that menu.
If this is not supported, are there any plans to add support for that?
WebApplication1.csproj
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<DockerDefaultTargetOS>Windows</DockerDefaultTargetOS>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer.Design" Version="1.1.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
Please sign in to leave a comment.
I'm not sure at all (but would like to know), but I "think" that it might not be currently supported with SDK csproj. I still have some ASP.NET 4 projects which don't support SDK .csproj, and those are the only ones that get an "EntityFramework" option in the menu. All of my other 250+ SDK .csproj files, many of which use EF6 or EF Core, have no EntityFramework options at all.
Hi there,
Please try the plugin https://plugins.jetbrains.com/plugin/18147-entity-framework-core-ui.
There is a blog post on how to use it: https://blog.jetbrains.com/dotnet/2022/01/31/entity-framework-core-inside-rider-ui-way/.
Also, there is a blog post describing how to use EF Core commands in console: https://blog.jetbrains.com/dotnet/2017/08/09/running-entity-framework-core-commands-rider/.
K.R.
Sofia