Chapter 6 - Database Programming
Chapter 6 - Database Programming
Class
o Connectionstring string connectionstring =
"datasource=localhost;port=3306;username=root;password
=;database=login";
o MySqlConnection: It is used to create MySQL Server
connection. This class cannot be inherited.
o MySqlCommand: It is used to execute database queries.
This class cannot be inherited.
o MySqlDataAdapter: It represents a set of data commands
and a database connection that are used to fill the DataSet.
This class cannot be inherited.
o MySqlDataReader: It is used to read rows from a MySQL
Server database. This class cannot be inherited
Event driving Programming(C#) by Dagne W. 6
for MySQL Server (wamp,xampp)
Object
o Connection: It is used to establish a connection to a specific
data source.
o Command: It is used to execute queries to perform
database operations.
o DataReader: It is used to read data from data source. The
DataReader is a base class for all DataReader objects.
o DataAdapter: It populates a DataSet and resolves updates
with the data source. error is
Methods:
1. Purpose of SqlCommandobject
SqlCommand object–Properties.
Thank you!!!