Integrating Data Lesson 6.

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.
 Open the Paradise.exe file  Application displays records in the Books database  Allows the store manager to enter an author’s name (or part of a name)
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
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.
Chapter 12: Using ADO.NET 2.0 Programming with Microsoft Visual Basic 2005, Third Edition.
Introduction to Database Processing with ADO.NET.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Using ADO.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
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.
Objective In this session we will discuss about : What is ADO. NET ?
CIS 764 – Presentation Somil Chandwani.  With Microsoft Data Access Components (MDAC), developers can connect to and use data from a wide variety of.
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.
Databases and LINQ Visual Basic 2010 How to Program 1.
Introduction to ADO.Net and Visual Studio Database Tools ISYS 512.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
Databases and Data Access  Introduction to ADO.NET  ADO.NET objects  ADP.NET namespaces  Differences between ADO and ADO.NET.
CHAPTER EIGHT Accessing Data Processing Databases.
.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.
File Processing Concepts – Field – combination of 1 or more characters that is the smallest unit of data to be accessed – Record – group of related fields.
 2006 Pearson Education, Inc. All rights reserved Database, SQL and ADO.NET.
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.
Module 9: Accessing Relational Data Using Microsoft Visual Studio.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
ADO.NET connections1 Connecting to SQL Server and Oracle.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Databases and ADO.NET Programming Right from the Start with Visual Basic.NET 1/e 11.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 25 I’m Suffering from Information Overload.
Chapter 24 I’m Suffering from Information Overload (Access Databases) Clearly Visual Basic: Programming with Visual Basic nd Edition.
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.
ADO.NET FUNDAMENTALS BEGINNING ASP.NET 3.5 IN C#.
ADO.NET Architecture MIS3502: Application Integration and Evaluation David Schuff Adapted from material by Arnold Kurtz, David.
Module 4 Introduction ADO.NET.
Module 5 Data Classes DataView – DataGridView Control 1.
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.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
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.
1 SQL SERVER 2005 Express CE-105 SPRING 2007 Engr. Faisal ur Rehman.
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
Data Access with ADO.NET
Introduction to ADO.NET
Introduction to Database Processing with ADO.NET
Microsoft Visual Basic 2010: Reloaded Fourth Edition
Introduction to Database Processing with ADO.NET
Visual Basic 2010 How to Program
VB 2010 Pertemuan 10.
Basic Database Concepts
Lecture 6 VB.Net SQL Server.
ADO.NET Accessing Databases in VS.NET
VB.NET Using Database.
Tonga Institute of Higher Education
Brief description on how to navigate within this presentation (ppt)
CIS16 Application Programming with Visual Basic
Database Objects 1/12/2019 See scm-intranet.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Chapter 10 ADO.
Database Applications
Creating a Windows Application Project in Visual Studio
Chapter 10 Accessing Database Files
.NET Framework Data Providers
Introduction to ADO.Net and Visual Studio Database Tools.
Presentation transcript:

Integrating Data Lesson 6

Objectives

Data in Windows Application When creating Windows Applications with Visual Studio, you have the capability to integrate various data sources within the application. A data source enables you to save application data into a managed medium where you are not concerned about the format of the file system data, only with the format presented by the management medium. The Microsoft .NET Framework provides consistent access to various data sources through the Active Data Objects (ADO.NET) set of classes in the System.Data namespace. Table 4-1 shows common Windows Form Events

Data in Windows Application A data store is a data file and a management engine that provides access into the data file. Examples: Microsoft Access and Microsoft SQL Server Data store interactions are handled through the use of the .NET Framework System.Data (ADO.NET) and System.XML namespaces.

DataRelationCollection ADO.NET Architecture DataProvider DataSet Connection DataTableCollection Command DataRelationCollection Data Store DataReader XML DataAdapter

There are two major components to the ADO.NET architecture: DataProvider: A fast forward-only, read-only data manipulation interface to a data store. DataSet: A collection of tables, with rows and columns, primary keys, foreign keys, and constraints, and the relationships between the tables.

ADO.NET Architecture Microsoft has developed these two namespaces to provide you with the ability to have both connected and disconnected data objects. Connected is when you can read/write directly with a data source. Disconnected is when you can read/write temporarily to an XML file until connected again.

.NET Framework Data Providers The .NET Framework provides several built-in Data Providers. Data Providers can be developed by anyone who needs to interface with a data store, but are typically produced by the data store’s manufacturer: .NET Framework Data Providers include: SQL Server Object Linking and Embedding (OLE) Database (DB) ODBC Oracle

Server Explorer The Server Explorer window is a centralized location within the Visual Studio environment where you can manage and create connects to data sources and servers. The Server Explorer provides a create data source connection feature that provides a set of dialogs to configure and test data source connections.

Change Data Source Dialog A Data Connection inside of the Server Explorer has several features that you will use to interact with your database. For each Data Connection, Server Explorer adds subfolders entitled Tables, Views, Stored Procedures, and Functions.

Windows Forms Data Controls The .NET Framework provides several Windows Forms controls that can be used to present data store information. Windows Forms Data Controls include: BindingSource DataSet BindingNavigation DataGridView

WPF Binding Working with data in the WPF application is more flexible, easier, and more powerful than any previous Microsoft application development environment. WPF introduces the capability to bind anything from controls, to XML, to properties, or objects themselves. WPF binding is the process of associating a WPF element’s property to a data source. To implement binding in WPF, you must have a target and a source.

Binding Modes OneWay - Continuously updates the target when the source changes. OneTime - Updates the target at the start of the application or when the DataContent property changes. OneWayToSource - Updates the source with the target’s data. TwoWay Updates - Updates in both directions.

WPF Specialized Binding WPF has two special elements that enable your WPF application to bind to data. Use the XMLDataProvider and the ObjectDataProvider to bind your XAML elements to data. The two data binding classes and some of their properties and methods are: XMLDataProvider ObjectDataProvider

Summary You learned how to create functionality using the ADO.NET System.Data namespaces. You learned how create a connection to a data store and then use that connection to create Windows Forms and WPF applications. You learned how to create Windows Forms data controls and validate data manipulation actions.