I am sorry. I am newbie in C#. I use Visual Studio Mac. I want to try to connect mysql database.
I have added mysql package. When I run, I get error. The error is :
adding a reference to assembly ‘System.Data, Version-4.0.0.0, Culture=neutral, PublicKeyToken
I'm new to Visual Studio. I'm currently creating a Login form.
I have this code.
string connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
try
{
using (OdbcConnection connect = new OdbcConnection(connectionString))
{
connect.Open();
OdbcCommand cmd = new OdbcCommand("SELECT username, password FROM receptionist", connect);
…
New to C# programming, I'd like to be able to access MySQL Databases.
I know MySQL connector/NET and MySQL for Visual Studio are required for C# development.
Do I need to install them into my app?
Is it possible …
Hey I keep getting an error:
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
My code:
OdbcCommand cmd = new OdbcCommand("SELECT FirstName, SecondName, Aboutme FROM User WHERE UserID=1", …