0

I need to access and download data from a MySQL database without connecting to the database during development in VisualStudio. Is there a way to program it blindly (since I know what the database looks like) like its done in PHP? Alternatively, can I use download the database schema and use it in Visual Studio?

2 Answers 2

3

What do you mean?

Even if you can't connect to the live database during dev time, you can create your own local testing MySQL database and connect to that.

Sign up to request clarification or add additional context in comments.

1 Comment

I agree, that will also help in your testing. Without connecting to a DB, you might not 'catch' some hideous bugs. Will be good also if the DB has realistic data for more 'realistic' data-related testing cases.
0

You could write sql and use sql connection, and just mock out the database so that your testing will still work, as long as your mock returns what is expected.

Though I agree that creating your own local database would be best.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.