SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
Dhruv Vekariya
196080316059
UNIT : VI
CONNECTING DATABASE
WITH ADO.NET
WEB PROGRAMMING
USING ASP.NET
CONTENTS
•Introduction
•ADO.NET Architecture
•Data provider and its core object
•DataSet class
•Data Binding
•SQL Data Source
Dhruv Vekariya
196080316059
INTRODUCTION
• ADO.net is an object oriented set of libraries that allows you to interact with data sources. Commonly,
the data sources in database, but it could be a text file, and an excel spreadsheet, or an XML file.
• ADO.NET is a set of classes that expose data access services for .NET Framework programmers.
• ADO.NET provides a rich set of components for creating distributed, data-sharing applications.
• It is an integral part of the .NET Framework, providing access to relational, XML, and application data.
• ADO.NET supports a variety of development needs, including the creation of front-end database
clients and middle-tier business objects used by applications, tools, languages, or Internet browsers.
• ADO.net provides a set of components for creating distributed, data sharing applications. It is an
integral part of.net framework, providing access to relational, XNL, and application data.
Dhruv Vekariya
196080316059
• Ado.net is a data access technology from Microsoft.net framework, which provides communication
between relational and non-relational systems through a common set of components.
ADO.NET ARCHITECTURE
Dhruv Vekariya
196080316059
Components of ADO.NET
ADO.NET has two main components
• Data provider
➣ Microsoft SQL server
➣ OLE DB
➣ OBDC etc.
• Data Set
➣ It is a tabular representation of data
➣ It represents complete set of data that includes tables, constraint and relationships among the
tables.
Dhruv Vekariya
196080316059
Data provider and its core object
ADO.NET core objects
• Core name space: system.data
• .NET framework data providers
Data provider Namespace
SQL Server System.Data.SQLClient
OLE DB System.Data.OleDb
ODBC System.Data.Odbc
Oracle System.Data.Oracle client
Dhruv Vekariya
196080316059
ADO.NET core objects
Object Description
Connection
Establishes a connection to a specific data
source
Command
Executes a command against a data source.
Exposes parameters and can execute within
the scope of transaction from a connection.
Data reader
Reads forward-only, read iPhone only stream
of data from a data source.
Data adapter
Populates a data set and resolves updates
within the data source.
Dhruv Vekariya
196080316059
DATASET CLASS
• The data set object is central to supporting disconnected, distributed data scenarios with ADO.net.
• It Can Be Used With Multiple And Differing Data Source, With Xml Data, Or To Manage Data Local To
The Application.
• The Dataset Represents A Complete Set Of Data, Including Related Tables, Constraints And
Relationships Among The Tables.
Dhruv Vekariya
196080316059
Dataset object model
Dhruv Vekariya
196080316059
Disconnected Data access
• To ADO.net disconnected data access architecture for more flexible and powerful than ADO’s
connection oriented data access.
• In connection oriented data access architecture the application makes a connection to the data
source and then interact with it through SQL request using the same connection.
Dhruv Vekariya
196080316059
Datatable, Datarow And Datacolumn
• Data table represents relational data into tabular form. ADO.net provides a data table class to create
and use data table independently.
• It can also be used with data set also. Initially, when we create data table, it does not have table
schema.we can create table schema by adding columns and constraints to the table.after defining
table schema, we can add rows to the table.
• We must include system.data namespace before creating data table.
Dhruv Vekariya
196080316059
• A data view enables you to create different views of the data stored in a Data table, a capability that is
often used in data-binding applications.
• Using a data view, you can expose the data in a table which different sort orders, and you can filter the
data by row state or based on filter expression.
• A data view provides you with a dynamic view of single set of data, much like database view, which
you can apply different sorting and filtering criteria.
Dataview
Dhruv Vekariya
196080316059
Data Binding
• Data binding, in the context of dot NET, is the method by which controls on user interface (UI) of a
client application are configured to fetch from, or update data into, data source, such as a database or
XML document.
• Data binding is the process that establishes a connection between the application UI and business
logic.
• If the binding has the correct settings and the data provides the proper notifications, when the data
changes its value, the elements that are bound to the data reflect changes automatically.
• Types of data binding:-
Dhruv Vekariya
196080316059
SQL DATA SOURCE
• An SQL database data source represents a relational database or another source of data that can be
accessed using an SQL database DSA.
• The configuration properties for the data source specify connection information for the underlying
source of data.
➣ A DB2® database
➣A MySQL database
➣An application that provides a generic ODBC interface
➣A character-delimited text file
• You create SQL database data sources using GUI.
Dhruv Vekariya
196080316059
Selecting, updating and deleting records
• The Select Command property of Sql Data Source can also be set to a stored procedure name instead
of SQL command text.
Command :-“ StoredProcedure ”
• The Sql Data Source control supports Update operations when its Update Command property is set and
Delete operations when its Delete Command.
• The Update Command or Delete Command should contain parameter placeholders every values
passed by Grid view control.
• We can specify an Update parameter or Delete parameter collection to set properties for each
parameter.
Dhruv Vekariya
196080316059
• This shows the operation
➣ insert, update, delete
• You can enter some domain data because or a
great view want display great view headers if it
contains null value at that time we cannot see
text boxes to enter new record.
Example
Column Name Data type
User ID
Int(Set identity
property=true)
Username Varchar(50)
First name Varchar(50)
Last name Varchar(50)
City Varchar(50)
Designation Varchar(50)
Dhruv Vekariya
196080316059
THEEND
Dhruv Vekariya
196080316059

Contenu connexe

Tendances

For Beginners - Ado.net
For Beginners - Ado.netFor Beginners - Ado.net
For Beginners - Ado.netTarun Jain
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb netZishan yousaf
 
Datasource in asp.net
Datasource in asp.netDatasource in asp.net
Datasource in asp.netSireesh K
 
Object relational database management system
Object relational database management systemObject relational database management system
Object relational database management systemSaibee Alam
 
Introduction to database with ms access.hetvii
Introduction to database with ms access.hetviiIntroduction to database with ms access.hetvii
Introduction to database with ms access.hetvii07HetviBhagat
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle DatabaseMeysam Javadi
 
Ado.net xml data serialization
Ado.net xml data serializationAdo.net xml data serialization
Ado.net xml data serializationRaghu nath
 
Chapter 4 terminolgy of keyvalue databses from nosql for mere mortals
Chapter 4 terminolgy of keyvalue databses from nosql for mere mortalsChapter 4 terminolgy of keyvalue databses from nosql for mere mortals
Chapter 4 terminolgy of keyvalue databses from nosql for mere mortalsnehabsairam
 
Introduction of oracle database
Introduction of oracle databaseIntroduction of oracle database
Introduction of oracle databaseRanidm
 
MS Sql Server: Introduction To Database Concepts
MS Sql Server: Introduction To Database ConceptsMS Sql Server: Introduction To Database Concepts
MS Sql Server: Introduction To Database ConceptsDataminingTools Inc
 
Physical architecture of sql server
Physical architecture of sql serverPhysical architecture of sql server
Physical architecture of sql serverDivya Sharma
 

Tendances (20)

For Beginners - Ado.net
For Beginners - Ado.netFor Beginners - Ado.net
For Beginners - Ado.net
 
Database programming in vb net
Database programming in vb netDatabase programming in vb net
Database programming in vb net
 
Ado.net
Ado.netAdo.net
Ado.net
 
Datasource in asp.net
Datasource in asp.netDatasource in asp.net
Datasource in asp.net
 
ADO CONTROLS - Database usage
ADO CONTROLS - Database usageADO CONTROLS - Database usage
ADO CONTROLS - Database usage
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Sap business objects interview questions
Sap business objects interview questionsSap business objects interview questions
Sap business objects interview questions
 
Object relational database management system
Object relational database management systemObject relational database management system
Object relational database management system
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
Introduction to database with ms access.hetvii
Introduction to database with ms access.hetviiIntroduction to database with ms access.hetvii
Introduction to database with ms access.hetvii
 
Discover database
Discover databaseDiscover database
Discover database
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
Ado.net xml data serialization
Ado.net xml data serializationAdo.net xml data serialization
Ado.net xml data serialization
 
Chapter 4 terminolgy of keyvalue databses from nosql for mere mortals
Chapter 4 terminolgy of keyvalue databses from nosql for mere mortalsChapter 4 terminolgy of keyvalue databses from nosql for mere mortals
Chapter 4 terminolgy of keyvalue databses from nosql for mere mortals
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
 
Introduction of oracle database
Introduction of oracle databaseIntroduction of oracle database
Introduction of oracle database
 
MS Sql Server: Introduction To Database Concepts
MS Sql Server: Introduction To Database ConceptsMS Sql Server: Introduction To Database Concepts
MS Sql Server: Introduction To Database Concepts
 
Physical architecture of sql server
Physical architecture of sql serverPhysical architecture of sql server
Physical architecture of sql server
 
Oracle DB
Oracle DBOracle DB
Oracle DB
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 

Similaire à WEB PROGRAMMING USING ASP.NET

Introduction to ado
Introduction to adoIntroduction to ado
Introduction to adoHarman Bajwa
 
Introduction to ADO.NET
Introduction to ADO.NETIntroduction to ADO.NET
Introduction to ADO.NETrchakra
 
Ch06 ado.net fundamentals
Ch06 ado.net fundamentalsCh06 ado.net fundamentals
Ch06 ado.net fundamentalsMadhuri Kavade
 
Azure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full CourseAzure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full CoursePiyush sachdeva
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.netNgeam Soly
 
What is ado .net architecture_.pdf
What is ado .net architecture_.pdfWhat is ado .net architecture_.pdf
What is ado .net architecture_.pdfAlbert828253
 
Latest Advance Animated Ado.Net With JDBC
Latest Advance Animated Ado.Net With JDBC Latest Advance Animated Ado.Net With JDBC
Latest Advance Animated Ado.Net With JDBC Tarun Jain
 
ADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaSonu Vishwakarma
 
KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloud
KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloudKoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloud
KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloudTobias Koprowski
 
Ado.Net Architecture
Ado.Net ArchitectureAdo.Net Architecture
Ado.Net ArchitectureUmar Farooq
 

Similaire à WEB PROGRAMMING USING ASP.NET (20)

ADO .Net
ADO .Net ADO .Net
ADO .Net
 
Introduction to ado
Introduction to adoIntroduction to ado
Introduction to ado
 
Introduction to ADO.NET
Introduction to ADO.NETIntroduction to ADO.NET
Introduction to ADO.NET
 
Ado
AdoAdo
Ado
 
Ch06 ado.net fundamentals
Ch06 ado.net fundamentalsCh06 ado.net fundamentals
Ch06 ado.net fundamentals
 
Azure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full CourseAzure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full Course
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.net
 
PPT temp.pptx
PPT temp.pptxPPT temp.pptx
PPT temp.pptx
 
Introduction to ado.net
Introduction to ado.netIntroduction to ado.net
Introduction to ado.net
 
Ado .net
Ado .netAdo .net
Ado .net
 
Ado.Net Tutorial
Ado.Net TutorialAdo.Net Tutorial
Ado.Net Tutorial
 
What is ado .net architecture_.pdf
What is ado .net architecture_.pdfWhat is ado .net architecture_.pdf
What is ado .net architecture_.pdf
 
ADO.NET
ADO.NETADO.NET
ADO.NET
 
Ch 7 data binding
Ch 7 data bindingCh 7 data binding
Ch 7 data binding
 
Latest Advance Animated Ado.Net With JDBC
Latest Advance Animated Ado.Net With JDBC Latest Advance Animated Ado.Net With JDBC
Latest Advance Animated Ado.Net With JDBC
 
ADO .NET by Sonu Vishwakarma
ADO .NET by Sonu VishwakarmaADO .NET by Sonu Vishwakarma
ADO .NET by Sonu Vishwakarma
 
Data virtualization using polybase
Data virtualization using polybaseData virtualization using polybase
Data virtualization using polybase
 
KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloud
KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloudKoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloud
KoprowskiT_SQLSat230_Rheinland_SQLAzure-fromPlantoBackuptoCloud
 
MS-ACCESS.pptx
MS-ACCESS.pptxMS-ACCESS.pptx
MS-ACCESS.pptx
 
Ado.Net Architecture
Ado.Net ArchitectureAdo.Net Architecture
Ado.Net Architecture
 

Dernier

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...SUHANI PANDEY
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 

Dernier (20)

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 

WEB PROGRAMMING USING ASP.NET

  • 1. Dhruv Vekariya 196080316059 UNIT : VI CONNECTING DATABASE WITH ADO.NET WEB PROGRAMMING USING ASP.NET
  • 2. CONTENTS •Introduction •ADO.NET Architecture •Data provider and its core object •DataSet class •Data Binding •SQL Data Source Dhruv Vekariya 196080316059
  • 3. INTRODUCTION • ADO.net is an object oriented set of libraries that allows you to interact with data sources. Commonly, the data sources in database, but it could be a text file, and an excel spreadsheet, or an XML file. • ADO.NET is a set of classes that expose data access services for .NET Framework programmers. • ADO.NET provides a rich set of components for creating distributed, data-sharing applications. • It is an integral part of the .NET Framework, providing access to relational, XML, and application data. • ADO.NET supports a variety of development needs, including the creation of front-end database clients and middle-tier business objects used by applications, tools, languages, or Internet browsers. • ADO.net provides a set of components for creating distributed, data sharing applications. It is an integral part of.net framework, providing access to relational, XNL, and application data. Dhruv Vekariya 196080316059
  • 4. • Ado.net is a data access technology from Microsoft.net framework, which provides communication between relational and non-relational systems through a common set of components. ADO.NET ARCHITECTURE Dhruv Vekariya 196080316059
  • 5. Components of ADO.NET ADO.NET has two main components • Data provider ➣ Microsoft SQL server ➣ OLE DB ➣ OBDC etc. • Data Set ➣ It is a tabular representation of data ➣ It represents complete set of data that includes tables, constraint and relationships among the tables. Dhruv Vekariya 196080316059
  • 6. Data provider and its core object ADO.NET core objects • Core name space: system.data • .NET framework data providers Data provider Namespace SQL Server System.Data.SQLClient OLE DB System.Data.OleDb ODBC System.Data.Odbc Oracle System.Data.Oracle client Dhruv Vekariya 196080316059
  • 7. ADO.NET core objects Object Description Connection Establishes a connection to a specific data source Command Executes a command against a data source. Exposes parameters and can execute within the scope of transaction from a connection. Data reader Reads forward-only, read iPhone only stream of data from a data source. Data adapter Populates a data set and resolves updates within the data source. Dhruv Vekariya 196080316059
  • 8. DATASET CLASS • The data set object is central to supporting disconnected, distributed data scenarios with ADO.net. • It Can Be Used With Multiple And Differing Data Source, With Xml Data, Or To Manage Data Local To The Application. • The Dataset Represents A Complete Set Of Data, Including Related Tables, Constraints And Relationships Among The Tables. Dhruv Vekariya 196080316059
  • 9. Dataset object model Dhruv Vekariya 196080316059
  • 10. Disconnected Data access • To ADO.net disconnected data access architecture for more flexible and powerful than ADO’s connection oriented data access. • In connection oriented data access architecture the application makes a connection to the data source and then interact with it through SQL request using the same connection. Dhruv Vekariya 196080316059
  • 11. Datatable, Datarow And Datacolumn • Data table represents relational data into tabular form. ADO.net provides a data table class to create and use data table independently. • It can also be used with data set also. Initially, when we create data table, it does not have table schema.we can create table schema by adding columns and constraints to the table.after defining table schema, we can add rows to the table. • We must include system.data namespace before creating data table. Dhruv Vekariya 196080316059
  • 12. • A data view enables you to create different views of the data stored in a Data table, a capability that is often used in data-binding applications. • Using a data view, you can expose the data in a table which different sort orders, and you can filter the data by row state or based on filter expression. • A data view provides you with a dynamic view of single set of data, much like database view, which you can apply different sorting and filtering criteria. Dataview Dhruv Vekariya 196080316059
  • 13. Data Binding • Data binding, in the context of dot NET, is the method by which controls on user interface (UI) of a client application are configured to fetch from, or update data into, data source, such as a database or XML document. • Data binding is the process that establishes a connection between the application UI and business logic. • If the binding has the correct settings and the data provides the proper notifications, when the data changes its value, the elements that are bound to the data reflect changes automatically. • Types of data binding:- Dhruv Vekariya 196080316059
  • 14. SQL DATA SOURCE • An SQL database data source represents a relational database or another source of data that can be accessed using an SQL database DSA. • The configuration properties for the data source specify connection information for the underlying source of data. ➣ A DB2® database ➣A MySQL database ➣An application that provides a generic ODBC interface ➣A character-delimited text file • You create SQL database data sources using GUI. Dhruv Vekariya 196080316059
  • 15. Selecting, updating and deleting records • The Select Command property of Sql Data Source can also be set to a stored procedure name instead of SQL command text. Command :-“ StoredProcedure ” • The Sql Data Source control supports Update operations when its Update Command property is set and Delete operations when its Delete Command. • The Update Command or Delete Command should contain parameter placeholders every values passed by Grid view control. • We can specify an Update parameter or Delete parameter collection to set properties for each parameter. Dhruv Vekariya 196080316059
  • 16. • This shows the operation ➣ insert, update, delete • You can enter some domain data because or a great view want display great view headers if it contains null value at that time we cannot see text boxes to enter new record. Example Column Name Data type User ID Int(Set identity property=true) Username Varchar(50) First name Varchar(50) Last name Varchar(50) City Varchar(50) Designation Varchar(50) Dhruv Vekariya 196080316059