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.

Slides:



Advertisements
Similar presentations
17. Data Access ADO.Net Architecture New Features of ADO.NET
Advertisements

ADO.NET: Working in Disconnected Environment Sergey Baidachni MCT, MCSD, MCDBA.
ADO vs ADO.NET ADOADO.NET Client/server coupledDisconnected collection of data from data server Uses RECORDSET object (contains one table) Uses DATASET.
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.
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.
VB.NET Database Access ISYS 812. Microsoft Universal Data Access ODBC: Open Database Connectivity –A driver manager –Used for relational databases OLE.
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 ?
Overview of ADO.NET Chapter 1 ADO.NET 4.0 Development.
Chapter 8 Binding Data to Web Controls. ASP.NET 2.0, Third Edition2.
Programming with Visual Basic.NET An Object-Oriented Approach  Chapter 8 Introduction to Database Processing.
ODBC, OLE DB, and ADO Introduction Dr. Ron Eaglin.
Chapter 61 Managing Data Sources Introduction to ASP.NET By Kathleen Kalata.
ADO.NET A2 Teacher Up skilling LECTURE 3. What’s to come today? ADO.NET What is ADO.NET? ADO.NET Objects SqlConnection SqlCommand SqlDataReader DataSet.
Developing Web Applications Using Microsoft ® Visual Studio ® 2008.
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.
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
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.
Moving from Microsoft ® ADO 2.X To ADO.NET Jackie Goldstein Renaissance Computer Systems Ltd. MSDN Regional Director, Israel Prerequisites.
 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.
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL ADO.Net Basics Ruwan Wijesinghe Trainer.
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.
ASP.NET Rina Zviel-Girshin Lecture 5
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
© 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
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
An Introduction to ADO.Net Marmagna Desai.NET Seminar, Fall-2003.
 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.
1 Data Classes- DataView DataGridView Control. Objectives 2  Data Class  DataAdapter  DataReader  DataSet  DataTable  DataView  DataGridView Control.
C# Programming in Depth Prof. Dr. Bertrand Meyer March 2007 – May 2007 Chair of Software Engineering Lecture 10: Database Lisa (Ling) Liu.
Why ADO.NET Not your father’s Data Access.
Why ADO.NET Not your father’s Data Access.
Module 3: Working with Local Data. Overview Using DataSets Using XML Using SQL Server CE.
HNDIT Rapid Application Development
Module 4 Introduction ADO.NET.
Active Data Objects Using.Net ADO.Net Farooq Ahmed Amna Umber Summayya Shehzad.
Module 5 Data Classes DataView – DataGridView Control 1.
DAT200 Microsoft® ADO.NET for ADO Classic Developers: Introducing ADO.NET Jackie Goldstein Renaissance Computer Systems
Module 2: Using ADO.NET to Access Data. Overview ADO.NET Architecture Creating an Application That Uses ADO.NET to Access Data Changing Database Records.
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
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
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.
Integrating Data Lesson 6.
Data Access with ADO.NET
Introduction to ADO.NET
Introduction to Database Processing with ADO.NET
Introduction to Database Processing with ADO.NET
ADO.NET Framework.
An Introduction to ADO.Net
VB.NET Using Database.
Tonga Institute of Higher Education
برنامه نویسی سیستم های شی گرا
Browser (Client Side) 瀏覽器 (客戶端)
Chapter 10 ADO.
PROG Advanced Web Apps 4/13/2019 Programming Data Pages Wendi Jollymore, ACES.
M S COLLEGE OF ART’S, COMM., SCI. & BMS Advance Web Programming
Introduction to Database Programming through ADO. NET
Presentation transcript:

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 are still the preferred means for building COM applications. ADO.NET specifically designed to build highly-scalable applications using a 3-tiered, connectionless model. Better support for “offline” applications. Most of the time in ADO.NET you are working with objects that have no active database connection. ADO.NET is based on XML.

ADO.NET The ADO.NET objects are implemented in the following namespaces: –System.Data - Base ADO.NET objects and types. –System.Data.Common - Classes shared by the.NET data providers. –System.Data.OleDb - OLEDB.NET data provider. –System.Data.SqlClient - SQL Server.NET data provider. –System.Data.SqlTypes - Native SQL Server data types. –ODP.NET – Oracle Data Provider (from Oracle) System.Data.OleDb and System.Data.SqlClient contain roughly the same classes. System.Data.OleDb is for using OLEDB data sources, like ADO is used for now. System.Data.SqlClient is specifically for SQL Server, and is highly optimized for performance.

ADO.NET Architecture.NET Data Provider Connection Transaction Command Parameters DataReader DataAdapter SelectCommand InsertCommand UpdateCommand DeleteCommand DatabaseDataSetDataSet DataTableCollection DataTable DataRowCollection DataColumnCollection ConstraintCollection DataRelationCollection XML

OleDbConnection / SqlConnection These classes represent an open connection to a data source. Provide the same service as the ADO Connection object. Feature the familiar properties (ConnectionString, etc.) and methods (Open, BeginTransaction, Close, etc.).

OleDbCommand / SqlCommand These classes represent a query command to be made against a data source. Mirrors the ADO Command object with one very big difference: Data that is returned from SELECT statements is obtained via an OleDbDataReader or SqlDataReader, which is always a forward-only, read- only stream.

OleDbDataReader / SqlDataReader Uses streaming methods, such as Read() to fetch data rows. Very fast, efficient object for read-only scenarios.

OleDbDataAdapter / SqlDataAdapter Represent a set of data commands and a database connection which are used to fill a DataSet and update the corresponding database. These objects are used for stateless batch update scenarios. Select, Insert, Update, and Delete commands are grouped together in one composite object. Used to interface a database with a DataSet object.

The DataSet The ADO.NET DataSet object can be described as an in- memory database. A DataSet object can contain a hierarchy of objects that represent tables, relationships, columns, rows, and constraints. It is not tied to any database product. The child objects can be manipulated in many ways. Not only can the data be updated, but additional child objects (tables, relationships, rows, etc.) can be created. The DataSet has been designed as the connectionless workhorse for the framework, servicing the need to bridge the Business Logic and Data Access layers in a multi-tiered implementation.

XML Throughout.NET Need to know the XML Document Object Model What does an XML object look like A “well formed” document contains an end tag for every begin tag.

XML Document Object Model XML Document Object Model (XML DOM) is a representation of the XML document in memory. The DOM class lets you read, write and manipulate and XML document. The.NET Framework provides classes, which enable you to navigate through an XML document and obtain relevant information.

XML Document Object Model XML Document Object Model (XML DOM) is a representation of the XML document in memory. The DOM class lets you read, write and manipulate and XML document. The.NET Framework provides classes, which enable you to navigate through an XML document and obtain relevant information. DOM Node structure: –Document,DocumentType, Element, Attribute, Comment,Text

XML in ADO.NET Can retrieve and XMLReader from a SqlCommand object Can fill a DataSet from an XML text file Can write the contents of a DataSet to an XML stream Can write the schema of a DataSet to an XML stream Can read an XML schema onto a DataSet Can create and XMLDataDocument and synchronize it with a DataSet Can persistent a DataSet with Serialization Can Deserialzie from an XML Document directly into a class. Lab 6-2