ADO.NET is a set of libraries included with the .NET Framework that help communicate with various data stores from .NET applications. The ADO.NET libraries include classes for connecting to a data source, submitting queries, and processing results. ADO.NET also allows for disconnected data access using objects like the DataSet which allows data to be cached and edited offline. The core ADO.NET objects include connections, commands, data readers, data adapters and data sets which provide functionality similar to but also improvements over ADO.
This presentation gives introduction to ADO.Net.
Basic introduction to connected & Disconnected architecture.
and explain the each every component in Ado.net
This presentation gives introduction to ADO.Net.
Basic introduction to connected & Disconnected architecture.
and explain the each every component in Ado.net
The presentation deals with ASP.NET page life cycle and gives you a brief introduction of the events that are fired during each phaze of page processing.
This ppt gives information about:
1. OOPs Theory
2. Defining a Class
3. Creating an Object
4. The $this Attribute
5. Creating Constructors
6. Creating Destructors
The presentation deals with ASP.NET page life cycle and gives you a brief introduction of the events that are fired during each phaze of page processing.
This ppt gives information about:
1. OOPs Theory
2. Defining a Class
3. Creating an Object
4. The $this Attribute
5. Creating Constructors
6. Creating Destructors
UNIT : -(6)
CONNECTING DATABASE WITH ADO.NET
Content:
•ADO.NET Architecture
•Data provider and its core object
•DataSet class
•Data Binding
•SQL Data Source
Ado.net architecture.ado.net architecture and component of ado .net .Architecture of ADO.NET :Features of ADO.NET explain architecture of ado.net with example ,ado.net architecture pdf ,ado.net tutorial
Ado.net architecture in c#
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
This presentation provides a briefing on how to upload submissions and documents in Google Classroom. It was prepared as part of an orientation for new Sainik School in-service teacher trainees. As a training officer, my goal is to ensure that you are comfortable and proficient with this essential tool for managing assignments and fostering student engagement.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
2. Introduction
ADO.NET is a set of libraries included with
the Microsoft .NET Framework that help
you communicate with various data stores
from .NET applications
3. Objectives of ADO.NET
The ADO.NET libraries include classes for
•connecting to a data source,
•submitting queries, and
•processing results.
•You can also use ADO.NET as a robust, hierarchical,
disconnected data cache to work with data off line.
4. Evolution of Technology
Visual Basic 3 Data Access Objects (DAO).
(local file-based databases)
Visual Basic 4 Remote Data Objects (RDO).
(larger server-based databases)
Visual Basic 5 and Visual
Studio 97
ODBCDirect
Visual Basic 6 and Visual
Studio 6
ADO
5. Why ADO.NET ?
•ADO will never handle XML data as efficiently as
ADO.NET does
•You cannot combine the contents of multiple
Recordset objects in ADO
•The ADO cursor engine does not, for example,
provide a way to submit pending changes to your
database via stored procedures
•ADO allows you to submit cached changes to
databases, but it does not give you control over the
logic used to submit updates
•ADO was built for COM-based application
6. Benefits of ADO.NET
• greater XML support,
• easier disconnected data access,
• more control over updates, and
• greater update flexibility
7. ADO Vs ADO.NET
•In ADO, the Recordset object stores the results of
your queries. You can call its Open method to fetch
the results of a query and call its Update (or
UpdateBatch) method to submit changes stored
within the Recordset to your database
•The objects that comprise the disconnected half of
the ADO.NET object model do not communicate
directly with the connected objects. This is a major
change from previous Microsoft data access object
models
9. Data Set
The central disconnected object, DataSet,
allows you to
sort,
•search,
•filter,
•store pending changes, and
•navigate through hierarchical data
•Work with XML
10. Dataset Vs Recordset
•The ADO.NET DataSet, is comparable in functionality
to the ADO Recordset
• However, the DataSet does not communicate with your
database
• In order to fetch data from your database into a DataSet,
you pass the DataSet into the Fill method of a connected
ADO.NET object—the DataAdapter.
• Similarly, to submit the pending changes stored in your
DataSet to your database, you pass the DataSet to the
DataAdapter object’s Update method
11. What is a Data Provider
•A .NET data provider is a collection of classes designed to
allow you to communicate with a particular type of data store
•The .NET Framework includes three such providers, the SQL
Client .NET Data Provider , the Oracle Client and the OLE
DB .NET Data Provider.
•Third party DB vendors provide their own Data providers
like Oracle’s Data Provider for .NET (ODP.NET)
•The OLE DB .NET Data Provider lets you communicate with
various data stores through OLE DB providers
•The SQL Client .NET Data Provider is designed solely to
communicate with SQL Server databases, version 7 and later.
12. What is common to all Data
Providers
•Each .NET data provider implements the same base classes—
Connection, Command, DataReader, Parameter, and
Transaction—although their actual names depend on the
provider
•For example, the SQL Client .NET Data Provider has a
SqlConnection object, and the OLE DB .NET Data Provider
includes an OleDbConnection object
•Regardless of which .NET data provider you use, the
provider’s Connection object implements the same basic
features through the same base interfaces
13. Data Provider Namespaces
Each .NET data provider has its own namespace
•System.Data.OleDb
•System.Data.SqlClient
•System.Data.OracleClient
14. IDbConnection Interface
Represents an open connection to a data
source, and is implemented by .NET
Framework data providers that access
relational databases.
Namespace: System.Data
Assembly: System.Data (in system.data.dll)
Syntax
public interface IDbConnection :
IDisposable
15. IDataAdapter interface
Allows an object to implement a
DataAdapter, and represents a set
of methods and mapping action-
related properties used to fill and
refresh a DataSet and update a
data source.
Namespace: System.Data
Assembly: System.Data (in
system.data.dll)
C# Syntax
public interface IDataAdapter
16. IDbDataAdapter Interface
Represents a set of command-related
properties that are used to fill the
DataSet and update a data source, and
is implemented by .NET Framework data
providers that access relational
databases.
Namespace: System.Data
Assembly: System.Data (in
system.data.dll)
Syntax
public interface IDbDataAdapter :
IDataAdapter
17. IDataReader Interface
Provides a means of reading one or more
forward-only streams of result sets obtained
by executing a command at a data source,
and is implemented by .NET Framework data
providers that access relational databases.
Namespace: System.Data
Assembly: System.Data (in system.data.dll)
Syntax
public interface IDataReader : IDisposable,
IDataRecord
18. IdbCommand Interface
Represents an SQL statement that is
executed while connected to a data
source, and is implemented by .NET
Framework data providers that access
relational databases.
Namespace: System.Data
Assembly: System.Data (in
system.data.dll)
Syntax
public interface IDbCommand :
IDisposable
19. IDbTransaction Interface
Represents a transaction to be performed
at a data source, and is implemented by
.NET Framework data providers that access
relational databases.
Namespace: System.Data
Assembly: System.Data (in system.data.dll)
Syntax
public interface IDbTransaction :
IDisposable
21. Parameter Object
Query without parameters :
SELECT CustomerID, CompanyName, Compa
nyName, Phone FROM Customers WHERE
CustomerID = 'ALFKI'
Query with parameters :
SELECT CustomerID, CompanyName, Compa
nyName, Phone FROM Customers WHERE
CustomerID = ?
To use a parameterized Command object, you
create Parameter objects for each of the parameters
in your query and append them to the Command
object’s Parameters collection
22. What is Data Adapter Object
•The DataAdapter object represents a new concept for
Microsoft data access models; it has no true equivalent in
ADO or DAO
•DataAdapter objects act as a bridge between your database
and the disconnected objects in the ADO.NET object model
•The DataAdapter object’s Fill method provides an efficient
mechanism to fetch the results of a query into a DataSet or a
DataTable so you can work with your data off line.
•Use DataAdapter objects to submit the pending changes
stored in your DataSet objects to your database
23. Command Builder
•The ADO.NET DataAdapter object exposes a number
of properties that are actually Command objects.
•For instance, the SelectCommand property contains a
Command object that represents the query you’ll use to
populate your DataSet object.
•The DataAdapter object also has UpdateCommand,
InsertCommand, and DeleteCommand properties that
correspond to Command objects you use when you
submit modified, new, or deleted rows to your database,
respectively
24. DataAdapter.Update
•With a DataAdapter object, you can set the UpdateCommand,
InsertCommand, and DeleteCommand properties to call the
stored procedures that will modify, add, or delete rows in the
appropriate table in your database.
•Then you can simply call the Update method on the
DataAdapter object and ADO.NET will use the Command
objects you’ve created to submit the cached changes in your
DataSet to your database
25. Data Table Object
•The ADO.NET DataTable object is similar to the ADO and DAO
Recordset objects.
•A DataTable object allows you to examine data through
collections of rows and columns.
•You can store the results of a query in a DataTable through the
DataAdapter object’s Fill method
26. Populating a Data Table
string strSQL = "SELECT CustomerID, CompanyName FRO
M Customers";
string strConn = "Provider=SQLOLEDB;Data Source=(local);..
.“
OleDbDataAdapter daCustomers = new OleDbDataAdapter(s
trSQL, strConn);
DataTable tblCustomers = new DataTable();daCustomers.Fill
(tblCustomers);
27. DataRow and DataColumn
•Once you’ve fetched the data from your database and stored
it in a DataTable object, that data is disconnected from the
server
•You access the contents of a DataTable through its Rows
property, which returns a collection of DataRow objects
•If you want to examine the structure of a DataTable, you use
its Columns property to retrieve a collection of DataColumn
objects
•The DataTable class also lets you define constraints, such as
a primary key, on the data stored within the class
28. Data Column Object
•Each DataTable has a Columns collection, which is a
container for DataColumn objects.
•The Columns collection and DataColumn objects can be
roughly compared to the Fields collection and Field objects
in ADO and DAO.
•However, a DataColumn object doesn’t actually contain
the data stored in your DataTable. Instead, it stores
information about the structure of the column
•For example, DataColumn exposes a Type property that
describes the data type (such as string or integer) that the
column stores.
•DataColumn has other properties such as ReadOnly,
AllowDBNull, Unique, Default, and AutoIncrement
29. Expression property
•The DataColumn class also exposes an Expression
property, which you can use to define how the data in
the column is calculated
•DataColumn col = new DataColumn();
•col.ColumnName = "ItemTotal";
•col.DataType = typeof(Decimal);
•col.Expression = "UnitPrice * Quantity";
30. Data Row Object
•To access the actual values stored in a DataTable object, you
use the object’s Rows collection, which contains a series of
DataRow objects
•DataRow row;
•row = MyTable.Rows[0];
•Console.WriteLine(row[0]);
•Console.WriteLine(row["CustomerID"]);
•Console.WriteLine(row[MyTable.Columns["CustomerID"]])
;
31. Looping a recordset in ADO
Dim strConn As String, strSQL As String
Dim rs As ADODB.RecordsetstrConn = "Provider=SQLOLEDB;
Data Source=(local);..."strSQL = "SELECT CustomerID, Company
Name FROM Customers“
Set rs = New ADODB.Recordsetrs.CursorLocation = adUseClient
rs.Open strSQL, strConn, adOpenStatic, adLockReadOnly, adCm
dText
Do While Not rs.EOF MsgBox rs("CustomerID") rs.MoveNext
Loop
33. Updation and DataRow
•The DataRow object is also the starting point for your
updates
•You can call the BeginEdit method of a DataRow object,
change the value of some columns in that row through the
Item property, and then call the EndEdit method to save the
changes to that row
•When you change the contents of a row, the DataRow
object caches those changes so that you can submit them to
your database at a later time
34. DataSet Object
•You can think of a DataSet object as the container for a
number of DataTable objects (stored in the DataSet
object’s Tables collection)
•Any changes you make to the data are simply cached in
each DataRow
•You can use the GetChanges method to extract just the
modified rows from your DataSet to update the Database
•You can use the DataSet class’s Merge method to
combine the contents of two DataSet objects into a
single DataSet
•You can create a DataSet object and populate its Tables
collection with information without having to
communicate with a database
35. Data Relation Object
•You can use a DataRelation object to indicate a relationship between
different DataTable objects in your DataSet
•DataSet dsNorthwind;
•dsNorthwind.Relations.Add("CustomersOrders",dsNorthwind.Tabl
es["Customers"].Columns["CustomerID"], dsNorthwind.Tables["Or
ders"].Columns["CustomerID"]);
•foreach (DataRow rowCustomer in dsNorthwind.Tables["Custom
ers"].Rows)
•{Console.WriteLine("Orders for customer " +
• rowCustomer["CompanyName"].ToString());
•foreach (DataRow rowOrder in rowCustomer.GetChildRows("Cus
tomersOrders"))
36. Data View Object
•Once you’ve retrieved the results of a query into a DataTable
object, you can use a DataView object to view the data in
different ways
•If you want to sort the contents of a DataTable object based on
a column, simply set the DataView object’s Sort property to the
name of that column
•You can also use the Filter property on DataView so that only
the rows that match certain criteria are visible.
37. Typed Data Set
•Let’s say we have a simple table named Orders that
contains two columns, CustomerID and CompanyName.
•DataSet ds;
• DataSet.Console.WriteLine(ds.Tables["Customers"]
.Rows[0]["CustomerID"]);
•Can be replaced by a Strongly Typed data set :
•CustomersDataSet ds;
•Console.WriteLine(ds.Customers[0].CustomerID);
38. Another Typed Data Set
Before using Typed Data Set :
DataSet ds;
DataRow rowNewCustomer;
rowNewCustomer = ds.Tables["Customers"].NewRow();
rowNewCustomer["CustomerID"] = "ALFKI";rowNewCustomer["
CompanyName"] = "Alfreds Futterkiste";
ds.Tables["Customers"].Rows.Add(rowNewCustomer);
After using Typed Data set:
ds.Customers.AddCustomersRow("ALFKI", "Alfreds Futterkiste")