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

1. Create a new solution in VS 2022 v17.12.0 using the Console App Template (I don't think the template matters) #2722

Closed
ErikEJ opened this issue Dec 11, 2024 · 5 comments · Fixed by #2733
Labels
bug Something isn't working reveng reveng-cli

Comments

@ErikEJ
Copy link
Owner

ErikEJ commented Dec 11, 2024

  1. Create a new solution in VS 2022 v17.12.0 using the Console App Template (I don't think the template matters)
  2. Right click the project in Solution Explorer, Select EF Core Power Tool and then Reverse Engineer
    image
  3. Select Add, Add Database Connection
    image
  4. Enter a server name and select a database
    image
  5. Click Advanced... and set Multi Subnet Failover to True
    image
  6. Click OK on the Advanced Properties Windows and the Connection Properties Window
  7. Error message is displayed
    image

If you skip step 5 is works, but may timeout connecting to the database depending on which IP comes back first from DNS. Starting from Server Explorer, right clicking Data Connections, clicking Add Connection... and then following steps 4-6 works without error and then can be used when reverse engineering a database with EF Core Power Tools
image

Originally posted by @mikeholczer in #1845 (comment)

@ErikEJ
Copy link
Owner Author

ErikEJ commented Dec 11, 2024

@mikeholczer moved this to a new issue

@ErikEJ ErikEJ added bug Something isn't working reveng reveng-cli labels Dec 12, 2024
@ErikEJ
Copy link
Owner Author

ErikEJ commented Dec 13, 2024

@mikeholczer I think this works from Server Explorer as you are probably using another Datasource than Microsoft SqlClient (as seen in step 4)

@mikeholczer
Copy link

I'm using Microsoft SQL Server (SqlClient) in both cases. In fact, if I skip step 5 and save the connection made through the Reverse Engineer window, I can then go over to Server Explorer, select Modify Connection on it, do step 5 there without any other changes and then I'm able to save the connection and use it.

@ErikEJ
Copy link
Owner Author

ErikEJ commented Dec 13, 2024

Interesting! Thanks for the additional details

ErikEJ added a commit that referenced this issue Dec 14, 2024
@ErikEJ
Copy link
Owner Author

ErikEJ commented Dec 14, 2024

I implemented a fix for this in the latest daily build, would be grateful if you could try it out.

If you like my free tools, I would be very grateful for a rating/review on Visual Studio Marketplace and/or a one-time or monthly sponsorship

ErikEJ added a commit that referenced this issue Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reveng reveng-cli
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants