0.1 Introduction to ADO.net Flashcards
1
Q
What is ADO.net?
A
It is a set of classes in C# that allows us to connect to, and work with data sources like databases, xml files, excell files, etc.
2
Q
What is a Data provider?
A
It is a set of components that allows a specific data source to be accessed in a managed way.
3
Q
What are the two main protocols used by data providers in ADO.net?
A
ODBC, OleDb
4
Q
List 5 data Providers, the api prefixes, and their descriptions.
A
- ODBC, Odbc, “Used to access older databases”
- OleDB, OledDB, “Used to access data sources with an OleDB interface, like access, and excell files”
- Oracle, Oracle, “Used to access Oracle databases”
- SQL, SQL, “Used to access microsoft SQL server”
- Borland, Bdp, “A generic way to access access data sources”
5
Q
What are the four components of data providers, and the classes associated with them?
A
- Connection: Connecting to the data source, using the DbConnection class.
- Command: Sending queries to the data source, using the DbCommand class.
- Data Reader: Reading data from the data source in a read-only manner, using the DbDataReader class.
- Data Adapter: Invoking and updating datasets from the data source, using the DbDataAdapter class.