Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jetbrains/rider-efcore
Entity Framework Core UI plugin for JetBrains Rider
https://github.com/jetbrains/rider-efcore
dotnet dotnet-core dotnet-ef ef-core entity-framework entity-framework-core jetbrains-plugin jetbrains-rider
Last synced: 4 days ago
JSON representation
Entity Framework Core UI plugin for JetBrains Rider
- Host: GitHub
- URL: https://github.com/jetbrains/rider-efcore
- Owner: JetBrains
- License: mit
- Created: 2021-11-09T23:45:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T13:01:49.000Z (9 days ago)
- Last Synced: 2025-01-29T16:57:08.692Z (4 days ago)
- Topics: dotnet, dotnet-core, dotnet-ef, ef-core, entity-framework, entity-framework-core, jetbrains-plugin, jetbrains-rider
- Language: Kotlin
- Homepage: https://plugins.jetbrains.com/plugin/18147-entity-framework-core-ui
- Size: 3.81 MB
- Stars: 181
- Watchers: 12
- Forks: 13
- Open Issues: 24
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Entity Framework Core UI plugin for JetBrains Rider
This plugin introduces Entity Framework Core commands' UI inside JetBrains Rider.
---
### Features
There are a couple of UI stuff for:
- Creating migrations
- Updating database with selected migration (including migration names autocompletion)
- DbContext scaffolding from existing database
- Creating SQL scripts from the migration range
- Removing last created migration
- Suggesting installing `dotnet ef` command line tools if not installed (when opening solution that contains EF Core related projects)
- Previewing commands before execution
- Persisting selected common preferences between dialogs### How to install
**Starting from Rider 2023.3, the plugin is bundled into the main Rider distribution. No additional actions required.**
### How to use
1. Open solution that contains EF Core related projects (migrations and startup projects)
2. Navigate to Entity Framework Core under project or solution context menu:![image](https://github.com/JetBrains/rider-efcore/assets/20597871/6356b447-b84d-45fb-b6a3-7babd9f95280)
You could use the context menu of either your migrations or startup projects.
3. Clicking action will show the appropriate dialog:![image](https://github.com/JetBrains/rider-efcore/assets/20597871/17d98128-f347-48e8-b30b-fb3d6c2fbb3a)
4. After you press Ok, the selected action will be executed in a console-like window (by default):
![image](https://github.com/JetBrains/rider-efcore/assets/20597871/e520fa69-3565-4487-9872-e19df9979b48)
5. You could also configure the dialog's behavior in Settings, under Tools/EF Core UI section:
![image](https://github.com/JetBrains/rider-efcore/assets/20597871/31a23fd1-c0ad-404d-9a58-4b839bbabe87)
More about features and available dialogs you could read on [**the documentation page**](https://www.jetbrains.com/help/rider/Visual_interface_for_EF_Core_commands.html).
### Requirements
#### TL;DR:
- the most recent stable version of **JetBrains Rider**,
- [officially supported](https://dotnet.microsoft.com/en-us/platform/support/policy/dotnet-core#lifecycle) versions of **.NET**, **EF Core tools** and **EF Core NuGets**.Before opening the issue, please make sure that your projects and development environment completely satisfies these requirements:
- Target frameworks
- `net8.0` (preview)
- `net7.0`
- `net6.0`
- `net5.0`
- `netcoreapp3.1`
- `netstandard2.1` *
- `netstandard2.0` **: only for Migrations projects
- `Microsoft.EntityFrameworkCore.*`: **5.0.0 or higher**
- Tools (`dotnet ef`): **5.0 or higher**
### Development
> **Note**: You should have JDK 17 and .NET SDK 7.0+ installed and configured.
#### Preparing
`./gradlew rdgen` - generates RD protocol data for plugin internal communication
#### Building plugin parts
`./gradlew buildPlugin`
It will build both frontend and backend parts.
#### Running
Next command will start instance of JetBrains Rider with plugin attached to it:
`./gradlew runIde`
### Contributing
Contributions are welcome! 🎉
It's better to create an issue with description of your bug/feature before creating pull requests.
### See also
- [**Entity Framework Core inside Rider: UI Way**](https://blog.jetbrains.com/dotnet/2022/01/31/entity-framework-core-inside-rider-ui-way/) _(recommended tutorial)_
- [**Marketplace page**](https://plugins.jetbrains.com/plugin/18147-entity-framework-core-ui)
- [**Changelog**](CHANGELOG.md)