Overview of ADO.NET Chapter 1 ADO.NET 4.0 Development.

Slides:



Advertisements
Similar presentations
ADO.Net Modelo para acesso a dados nas aplicação.Net Componentes: DataSet.Net Data providers: Connection Command DataReader DataAdapter.
Advertisements

Database Connections with ASP.Net
 ADO.NET Overview  ADO.NET Classes. ADO.NET Overview Looking Back  ODBC (Open Database Connectivity)  Interoperability to a wide range of database.
By Chris Pascucci and FLF
Chapter 10 ADO. What is ADO? ADO is a Microsoft technology ADO stands for ActiveX Data Objects ADO is a programming interface to access data in a database.
Introduction to Database Processing with ADO.NET.
Fundamentals, Design, and Implementation, 9/e Chapter 12 ODBC, OLE DB, ADO, and ASP.
1 ADO.NET. 2.NET Framework Data Namespaces System.Data –Base set of classes and interfaces for ADO.NET System.Data.Common –Classes shared by the.NET Data.
14 1 Chapter 14 Database Connectivity and Web Development Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
ASP.NET Programming with C# and SQL Server First Edition Chapter 8 Manipulating SQL Server Databases with ASP.NET.
Chapter 12 Database Connectivity with ASP.NET JavaScript, Third Edition.
Programming in ADO.NET: Data-Centric Applications and ADO.NET Original copyright by Microsoft, 2002, with minor modifications by Dan Eaves, 2005.
Objective In this session we will discuss about : What is ADO. NET ?
SQL Server ® 2008 ® Native Client. Agenda  Introduction to SQL Server Native Client  Building High-Performance Data Access Solutions  Going Beyond.
Overview of Database Access in.Net Josh Bowen CIS 764-FS2008.
CIS 764 – Presentation Somil Chandwani.  With Microsoft Data Access Components (MDAC), developers can connect to and use data from a wide variety of.
C# programming with database Basic guideline. First step Install SQL Server 2008/2010 (Professional edition if possible) Install Visual Studio 2008/2010.
Overview of ADO.NET Whidbey  Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow.
ADO.NET – part II August 2004 [ Marmagna Desai]. CONTENTS ADO vs ADO.NET ADO.NET – Managed providers Connecting to Database SqlConnection Selecting Database.
ODBC, OLE DB, and ADO Introduction Dr. Ron Eaglin.
Prof. Yousef B. Mahdy Distributed Database Systems Prof. Yousef B. Mahdy MySQL-5 Updating Data.
Overview of ADO.NET with the.NET Framework Scalable Development, Inc. Building systems today that perform tomorrow.
Accessing SQL Server and OLE DB from.NET Svetlin Nakov Telerik Corporation
A Simple Introduction. What is ADO.net? First the word ADO stands for ActiveX Data Objects And it is an integral part of.Net Framework of Microsoft hence.
Needs for Accessing Database To make your web site more dynamic and maintainable, you can display information on your web pages that are retrieved from.
Databases and Data Access  Introduction to ADO.NET  ADO.NET objects  ADP.NET namespaces  Differences between ADO and ADO.NET.
.NET Data Access and Manipulation ADO.NET. Overview What is ADO.NET? Disconnected vs. connected data access models ADO.NET Architecture ADO.NET Core Objects.
1 Introduction to ADO.NET Microsoft ADO.NET 2.0 Step by Step Rebecca M Riordan Microsoft Press, 2006.
Chapter 3 Introduction to ADO.NET 3.1 The ADO and ADO.NET ActiveX Data Object (ADO) is developed based on Object Linking and Embedding (OLE) and Component.
 It is the primary data access model for.Net applications  Next version of ADO  Can be divided into two parts ◦ Providers ◦ DataSets  Resides in System.Data.
Database, SQL, and ADO.NET- Part 1 Session 11 Mata kuliah: M0874 – Programming II Tahun: 2010.
Objectives In this lesson, you will learn to: *Identify the need for ADO.NET *Identify the features of ADO.NET *Identify the components of the ADO.NET.
10/26/20151 Chapter 3 Introduction to ADO.NET In this chapter, you will: Learn the basic classes in ADO.NET and its architecture Learn the different ADO.NET.
Module 9: Accessing Relational Data Using Microsoft Visual Studio.NET.
Session 8: ADO.NET. Overview Overview of ADO.NET What is ADO.NET? Using Namespaces The ADO.NET Object Model What is a DataSet? Accessing Data with ADO.NET.
Module 7: Accessing Data by Using ADO.NET
Christopher M. Pascucci.NET Programming: Databases & ADO.NET.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Introduction to ADO.NET ADO.NET - Lesson 01  Training time: 10 minutes  Author:
Presented by Joseph J. Sarna Jr. JJS Systems, LLC
An Introduction to ADO.Net Marmagna Desai.NET Seminar, Fall-2003.
ADO.NET connections1 Connecting to SQL Server and Oracle.
 It is the primary data access model for.Net applications  Next version of ADO  Can be divided into two parts ◦ Providers ◦ DataSets  Resides in System.Data.
Why ADO.NET Not your father’s Data Access.
The Problems HTTP is disconnected So many database vendors Create a simple consistent versatile interface on the data Look at ADO.NET classes OleDb SQL.
Accessing SQL Server and MySQL from.NET and C# Learning & Development Team Telerik Software Academy.
CIS 375—Web App Dev II ASP.NET 9 Database. 2 ADO.NET What is ADO.NET? ADO.NET is a part of the.NET Framework ADO.NET consists of a set of classes used.
Copyright © Curt Hill Connectivity Communicating with the Database.
Why ADO.NET Not your father’s Data Access.
HNDIT Rapid Application Development
Database Connectivity with ASP.NET. 2 Introduction Web pages commonly used to: –Gather information stored on a Web server database Most server-side scripting.
Module 4 Introduction ADO.NET.
Introduction Because database applications today reside in a complicated environment, various standards have been developed for accessing database servers.
Active Data Objects Using.Net ADO.Net Farooq Ahmed Amna Umber Summayya Shehzad.
Querying Information in a Database. CONTENTS Relational Database Systems Creating Database with SQL Server Reading Data with LINQ Requirements to Get.
Data Access. ADO.NET ADO.NET is the primary library for building database solutions within the.NET Framework. ADO.NET does not replace ADO. ADO and OLEDB.
ADO .NET from. ADO .NET from “ADO .Net” Evolution/History of ADO.NET MICROSOFT .NET “ADO .Net” Evolution/History of ADO.NET History: Most applications.
.NET Data Access and Manipulation
C# 1 CSC 298 ADO.NET. C# 2 ADO.NET  A data access technology that maps very well to the world of the web (disconnected architecture)  data is retrieved.
ASP.NET Programming with C# and SQL Server First Edition
Data Access with ADO.NET
DB Apps Introduction Intro to ADO.NET SQL SoftUni Team DB Apps Intro
Introduction to Database Processing with ADO.NET
Introduction to Database Processing with ADO.NET
ADO.NET Framework.
Overview of Data Access
ADO.NET Accessing Databases in VS.NET
Overview of Data Access
برنامه نویسی سیستم های شی گرا
Chapter 10 ADO.
Introduction to Database Programming through ADO. NET
Presentation transcript:

Overview of ADO.NET Chapter 1 ADO.NET 4.0 Development

2 Contents What is ADO.NET? The evolution of ADO to ADO.NET SQL Server data provider OLE DB data provider ODBC data provider Oracle data provider Type mappings

3 What is ADO.NET? Microsoft's database API for the Internet era Core classes are in System.Data namespace Four data providers supported SQL Server data provider OLE DB data provider ODBC data provider Oracle data provider There are 3 usage styles in ADO.NET ADO.NET connected model ADO.NET disconnected model LINQ to SQL and/or ADO.NET Entity Framework

4 The Evolution of ADO to ADO.NET ADO.NET is significantly different than ADO To improve flexibility, scalability, and performance The following diagram shows how objects in ADO map to equivalent objects in ADO.NET ConnectionXxxConnection CommandXxxCommand RecordSet XxxDataReader DataSet XxxDataAdapter ADOADO.NET

5 SQL Server Data Provider Optimised access to SQL Server 7.0 upwards, and for the Microsoft Data Engine (MSDE) Uses lightweight Tabular Data Stream (TDS) protocol to communicate efficiently with SQL Server Use the System.Data.SqlClient namespace, which includes the following classes: SqlConnection (connect to database) SqlCommand (execute SQL statement/stored proc) SqlDataReader (fast forward-only cursor over data) SqlDataAdapter (useful in disconnected apps)

6 OLE DB Data Provider Access to data sources that have an OLEDB data provider, such as SQL Server 6.5 and Access Uses native OLE DB and COM interoperability to connect and communicate with a data source Use the System.Data.OleDb namespace, which includes the following classes: OleDbConnection (connect to database) OleDbCommand (execute SQL cmd/stored proc) OleDbDataReader (fast forward-only cursor) OleDbDataAdapter (useful in disconnected apps)

7 ODBC Data Provider Access to data sources that have an ODBC driver Only use this approach as a last resort! Use the System.Data.Odbc namespace, which includes the following classes: OdbcConnection (connect to database) OdbcCommand (execute SQL cmd/stored proc) OdbcDataReader (fast forward-only cursor) OdbcDataAdapter (useful in disconnected apps)

8 Oracle Data Provider Optimized and targeted access to Oracle data sources Introduced in the.NET Framework v1.1 (in v1.0, you have to use the OLE DB data provider instead) Use the System.Data.OracleClient namespace, which includes the following classes: OracleConnection (connect to database) OracleCommand (execute SQL cmd/stored proc) OracleDataReader (fast forward-only cursor) OracleDataAdapter (useful in disconnected apps)

9 Type Mappings Each data provider defines its own data mappings Database data types  CLR data types Example Commonly-used type mappings for the SQL Server data provider: SQL Server data typesCLR data types intSystem.Int32 decimal, numeric, money, smallmoneySystem.Decimal floatSystem.Double bitSystem.Boolean char, varchar, nchar, nvarcharSystem.String, System.Char[] date, datetime, smalldatetimeSystem.DateTime timestamp, binary, varbinarySystem.Byte[]