Seriously, I don't know how to use ado.net in MVC, any one how to use aso.net in MVC?

any comment is appreciated.

Recommended Answers

All 8 Replies

I know how.

Depends how you want to architect/tier this though - any thoughts?

Also what database are you using and do you want to use stored procedures?

Finally what is your level of programming skill and which language do you want this in?

MySQL and C# sir.

but now I am using MSSQL.

my programming skills is above average.

Here is my Insert Command: in C# and MySQL.

MySqlConnector c = new MySqlConnector("server=server;uid=root;pwd=pwd;database=database");
MySqlDataAdaptor d = new MySqlAdaptor();
string q;
DataTable t;

q="insert into product (id, name, price) values (null,'"+txtName.Text
    +"','"+txtPrice.Text+"')";
t = new DataTable();
d.SelectCommand = new MySqlCommand(q, c);
d.Fill(t);

I can't access to that site Sir. Dave, Maybe my country is block from this that site. :(

Really? What happens? Which country are you in?

now.png Philippines

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.