Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NULL0B opened this issue Sep 6, 2023 · 1 comment
Open

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

NULL0B opened this issue Sep 6, 2023 · 1 comment
Labels
suggestion Unapproved suggestion

Comments

@NULL0B
Copy link

NULL0B commented Sep 6, 2023

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:).

@NULL0B NULL0B changed the title Go to DBExplorer database for EF models, context action. Go to DBExplorer table for EF models, context action. Sep 6, 2023
@seclerp
Copy link
Member

seclerp commented Sep 7, 2023

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.

@seclerp seclerp added the suggestion Unapproved suggestion label Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Unapproved suggestion
Projects
None yet
Development

No branches or pull requests

2 participants