JetBrains / rider-efcore

Entity Framework Core UI plugin for JetBrains Rider
https://plugins.jetbrains.com/plugin/18147-entity-framework-core-ui
MIT License
180 stars 14 forks source link

Go to DBExplorer table for EF models, context action. #195

Open NULL0B opened 1 year ago

NULL0B commented 1 year ago

Would be nice if exist an option that pressing f12(visual studio shortuct go to definition) or maybe a context menu gets available db conections in the ide if the feature is present and shows sql tables that this model represent if any and the posibility to open ot directly. This would also need to parse the attribute Table(name:).

seclerp commented 1 year ago

Hi @NULL0B, thanks for the ticket. Do you mean that you propose to introduce something like "Go to table" from the DbContext's entity to the related table in the Database tool window?

The only problem with that solution is that it's quite hard to determine which connection string is related to which DbContext. So, most likely, such predictions may fail for similar connections with similar table names. Or it may cause false positive, where "go to" will lead to another connection.