.net - How do I set up a connection string for a MySQL database in a C# project without using dialog boxes? -


Note: apparently, the MySQL connector does not automatically appear in the dialog box to add the data The source is because the view 2008 Express Edition does not allow "3rd party integration" within the Visual Studio IDE. Therefore, this makes the data source more important manually because the integrated tools from the MySQL connector are not present.


My goal is to set up a connection MySQL database using the Entity Framework (an ADOnet unit data model) I am frustrated with all the magicians and dialog boxes and I still He is not getting what I see.

Here's what I have done: I have just installed the MySQL .NET connector V6.1.3 on my machine (for my knowledge, it is installed correctly. Shows in Add / Remove). In the visual studio (with Visual C # 2008 Express edition SP1 unit framework version that runs with SP1), I click to add a reference to a project, click on "Adonet Entity Data Model" and click on Brings me to a screen that "What should be in the model?" I select "generated from database" and then click Next.

This screen asks me what data connection should I use. I click on "new connection" and get a screen that looks like this:

Where is an option for the ADO.NET MySQL connector that I just installed?

I know for MySQL, but I do not understand how to get it in my application so that Visual Studio recognizes it, uses ADOnet connector, and make me a unit model Allows to select that connection. How can this be accomplished?

Use the app.config (or web.config) file to add the app. Make sure that the provider = attribute correctly with the MySQL provider.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -