.NET Framework Data Providers

Slides:



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

ADO vs ADO.NET ADOADO.NET Client/server coupledDisconnected collection of data from data server Uses RECORDSET object (contains one table) Uses DATASET.
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.
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.
ADO.NET. ADO.NET deals with accessing and manipulating databases.it comprises of many namespaces and classes to do so. ADO.NET provides access to datasources.
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.
CORE 2: Information systems and Databases CENTRALISED AND DISTRIBUTED DATABASES.
FEN Data connection DataReader DataSet Bonus info: Concurrency and Database Transactions Embedded SQL.
CIS 451: Using ASP.NET Objects with SQL Dr. Ralph D. Westfall February, 2009.
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)
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.
Database Essentials. Key Terms Big Data Describes a dataset that cannot be stored or processed using traditional database software. Examples: Google search.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with Disconnected Data The DataSet and SqlDataAdapter ADO.NET - Lesson.
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
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:
Windows Forms in Visual Studio 2005 Mike Pelton Systems Engineer Microsoft Ltd
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.
Mauricio Featherman, Ph.D. Washington St. University
DEV383 The ADO.NET DataSet and You Jackie Goldstein General Manager Renaissance Computer Systems
Module 3: Working with Local Data. Overview Using DataSets Using XML Using SQL Server CE.
1 11/15/05CS360 Windows Programming ADO.NET Continued.
HNDIT Rapid Application Development
Module 4 Introduction ADO.NET.
Module 5 Data Classes DataView – DataGridView Control 1.
Working With Database Library And Helpers. Connecting to your Database First you need to set parameters in you database.php file residing in config folder.
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.
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
Integrating Data Lesson 6.
Common SQL keywords. Building and using CASE Tools Data Base with Microsoft SQL-Server and C#
ASP.NET Programming with C# and SQL Server First Edition
Introduction to ADO.NET
Introduction to Database Processing with ADO.NET
Introduction to Database Processing with ADO.NET
North East Fasteners ERP V1.0
ADO.NET Framework.
Practical Office 2007 Chapter 10
Programming the Web Using ASP.Net
Lecture 6 VB.Net SQL Server.
Introduction to Microsoft Access
Active Data Objects Binding ASP.NET Controls to Data
ADO.NET Accessing Databases in VS.NET
VB.NET Using Database.
Tonga Institute of Higher Education
Lecture Set 14 B new Introduction to Databases - Database Processing: The Connected Model (Using DataReaders)
Database Objects 1/12/2019 See scm-intranet.
Stores data in different tables
.Net Framework Details Imran Rashid CTO at ManiWeber Technologies.
Опит в използването на ODP.NET с Oracle 9i
Chapter 10 ADO.
Bear Project Title Name Class Date
Arrays Imran Rashid CTO at ManiWeber Technologies.
Active Data Objects Binding ASP.NET Controls to Data
M S COLLEGE OF ART’S, COMM., SCI. & BMS Advance Web Programming
Introduction to Database Programming through ADO. NET
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

.NET Framework Data Providers Imran Rashid CTO at ManiWeber Technologies

Outline Connected V/S Disconnected Architecture In C# DataReader DataSet DataAdapter DataTable The Big Picture

Connected V/S Disconnected Architecture In C#

Connected V/S Disconnected Architecture In C# When we create software or website or any other application which is connected to the database we need to make connection to the database to get data In C#, we work in two different ways with database connectivity Either it can be connected architecture where you go and connect to the database and get data Or disconnected architecture where you connect to the database first time and get all data in an object and use it if required You can perform any action like insert, update, and search on this

Connected V/S Disconnected Architecture In C# You can use two C# objects to achieve this, first one is DataSet and other one is DataReader

DataReader

DataReader DataReader is used to read the data from database and it is a read and forward only connection oriented architecture during fetch the data from database DataReader will fetch the data very fast when compared with dataset Generally we will use ExecuteReader object to bind data to datareader

DataReader

DataReader Pros & Cons Holds the connection open until you are finished (don't forget to close it!) Can typically only be iterated over once Is not as useful for updating back to the database

DataSet

DataSet DataSet is a disconnected orient architecture that means there is no need of active connections during work with datasets and it is a collection of DataTables and relations between tables It is used to hold multiple tables with data Also DataSet provides you with rich features like saving data as XML and loading XML data

DataSet

DataSet Pros & Cons Lets you close the connection as soon it's done loading data, and may even close it for you automatically All of the results are available in memory You can iterate over it as many times as you need, or even look up a specific record by index Has some built-in faculties for updating back to the database

DataAdapter

DataAdapter DataAdapter acts as a Bridge b/w DataSet and database This dataadapter object is used to read the data from database and bind that data to dataset Dataadapter is a disconnected oriented architecture

DataTable

DataTable DataTable represents a single table in the database It has rows and columns There is no much difference b/w dataset and datatable, dataset is simply the collection of datatables

The Big Picture

The Big Picture

The Big Picture Database Connection Process

Q2: Create a console application called DBDemo ASSIGNMENT Lab Work Q1: Create a database called library and make a table inside called book (id, title, author, year) Q2: Create a console application called DBDemo Q3: Write a code which accepts title, author and year from console and stores it to database also instantly it shows the data below the console from database

Any ?