Presentation is loading. Please wait.

Presentation is loading. Please wait.

ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David.

Similar presentations


Presentation on theme: "ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David."— Presentation transcript:

1 ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff David.Schuff@temple.edu Adapted from material by Arnold Kurtz, David Schuff, and Paul Weinberg

2 The Database Server Made up of Database Management System (DBMS) SQL APIs Database-level Security Network Operating System (NOS) Network Protocols OS-level Security Oracle 10 Oracle’s API Windows Server 2003 TCP/IP Windows XP Oracle Driver TCP/IP Database Server Has: Client/Application Server Has:

3 When things get messy… Oracle 10 Oracle’s API Windows Server 2000 TCP/IP Windows XP Oracle Driver MSSQL Driver DB2 Driver TCP/IP Database Server A: Client/Application Server Has: MSSQL 2005 MSSQL API Windows Server 2003 TCP/IP Database Server B: IBM DB2 9 DB2 API Solaris (Sun) TCP/IP Database Server C: The node communicating with the database servers have to have a driver for each type of server (a lot of management).

4 One solution: Microsoft Data Access Components (MDAC) Defines a standard set of routines with which an application can access data in a data source (from Windows online help) Several components ODBC – Open Database Connectivity OLEDB – Object Linking and Embedding for Databases ADO (.NET) – ActiveX Data Objects for.NET We’ll look at ODBC/OLEDB The server has a single API, and the clients know how to “talk” that API Works through the Operating System

5 How it looks with OleDB… Windows XP MS OleDB driver Oracle DSN MSSQL DSN DB2 DSN TCP/IP Client/Application Server Has: IBM DB2 9 OleDb API Solaris (Sun) TCP/IP Database Server C: Instead of three drivers on the client, there is a single driver with multiple data sources defined. MSSQL 2005 OleDb API Windows 2000 TCP/IP Database Server B: Oracle 10 OleDb API Windows 2000 TCP/IP Database Server A:

6 Basic ADO.NET objects (Microsoft Access example) From Murach, M. and Boehm, A. “ASP.NET 2.0 Web Programming with C# 2005,” 2006, page 363. Data tableData adapter Command ConnectionDatabase Database server.NET data provider DataSet The GUI is populated with data from the DataSet topmovies.mdb via the Microsoft “Jet Engine” The adapter is the interface between the application and.NET The command object contains the SQL statement The connection object manages the direct interaction with the database server The adapter is the interface between the application and.NET The command object contains the SQL statement The connection object manages the direct interaction with the database server “Disconnected data model” The connection is only established when data is retrieved or sent to the database server “Disconnected data model” The connection is only established when data is retrieved or sent to the database server

7 Data column Data row Constraint Data table Data relation Dataset Closer look at the Dataset The data table object consists of columns, rows, and constraints. A column object represents the metadata for a field in the table. A row object represents a record (set of column data). A constraint object maintains data integrity through primary key rules and referential integrity. A relation object contains information about the relationships between the tables. The data table object consists of columns, rows, and constraints. A column object represents the metadata for a field in the table. A row object represents a record (set of column data). A constraint object maintains data integrity through primary key rules and referential integrity. A relation object contains information about the relationships between the tables. From Murach, M. “C# 2005,” 2006, page 519.


Download ppt "ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David."

Similar presentations


Ads by Google