Presentation is loading. Please wait.

Presentation is loading. Please wait.

DAT200 Microsoft® ADO.NET for ADO Classic Developers: Introducing ADO.NET Jackie Goldstein Renaissance Computer Systems

Similar presentations


Presentation on theme: "DAT200 Microsoft® ADO.NET for ADO Classic Developers: Introducing ADO.NET Jackie Goldstein Renaissance Computer Systems"— Presentation transcript:

1 DAT200 Microsoft® ADO.NET for ADO Classic Developers: Introducing ADO.NET Jackie Goldstein Renaissance Computer Systems jackie@renaissance.co.il

2 Jackie Goldstein… General Manager of Renaissance Computer Systems Consulting, Training, & Development, with Microsoft Tools & Technologies Author of “Database Access with Visual Basic.Net” (ISBN 0-67232-3435, Addison-Wesley) MSDN Regional Director for Israel Founder and monthly host of IVBUG (Israel Visual Basic User Group) Speaker at local & international developer conferences: Microsoft Developer Days, TechEd, VSLive!, VBITS, VB DevCon, SQL2TheMax Selected as SME (Subject Matter Expert) to help develop/review content for DevDays 2000 and DevDays 2001 with Microsoft team in Redmond

3 Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

4 Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

5 ADO.NET ADO Look and Feel… Direct OLE DB connectivity… Integrated with.NET Framework… Integrated with XML… "Designed for the Enterprise"…

6 The.NET Framework Applications Are Built Using the Framework Common Language Runtime Memory MgmtType SystemLifetime System Base Classes IOThreadingSecurityServiceProcess DataOledbSQLClientXML System.Web Web ServicesWeb Forms ASP Application Services System.Windows.Forms ControlsDrawing Windows Application Services

7 .NET Data Provider DataReader Command Connection Sync Data In The.NET Platform Controls, Designers, Code-gen, etc DataSet XmlReader XmlText-ReaderXmlNode-Reader XSL/T, X-Path, Validation, etc XmlData- Document Data-Adapter

8 Points to Note in ADO.NET vs. ADO Separation between connected data access model and disconnected programming model No CursorType, CursorLocation, or LockType ADO Recordset functionality is split into smaller, specific objects, e.g. DataReader, DataTable, Command ADO.NET allows manipulation of XML data, not just XML as I/O format

9 Comparison Between ADO and ADO.NET (1) FeatureADOADO.NET Memory-resident Data Representation RecordSet can contain one table DataSet can contain one or more tables represented by DataTable Object Relationship Between Multiple Tables Require the JOIN querySupports the DataRelation object Data VisitationScans RecordSet rows sequentially Uses a navigation paradigm for non- sequential access Disconnected AccessProvided by RecordSet but typically supports connected access Communicates with standardized calls to the DataAdapter

10 Comparison Between ADO and ADO.NET (2) FeatureADOADO.NET Sharing Disconnected Data Between Tiers or Components Uses COM marshalling to transmit disconnected record set Transmits a DataSet with an XML file Transmitting Data Through Firewalls Problematic because firewall are typically configured to prevent system-level requests Supported, DataSet object use XML, which can pass through firewalls ScalabilityDatabase locks and active database connections for long durations Disconnected access to database data without retaining database locks

11 Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

12 .NET Data Providers Manage interaction to a data source Microsoft Implementations OLEDB.NET Data Provider SQLServer.NET Data Provider ODBC.NET Data Provider Oracle.NET Data Provider Main Objects: Connection, Command, Parameter DataReader, DataAdapter DataStore DataProvider

13 Using.NET Data Providers Connection Object Command Object DataReader Object demo demo

14 DataSet Object DataSet DataTable DataTable DataRow DataColumn Relations Constraints XML Schema

15 DataAdapter Object DataAdapter SelectCommand InsertCommand UpdateCommand DeleteCommand TableMappings Database DataSet

16 Using the DataAdapter Simple Fill Database Updates Using the DataAdapter Configuration Wizard demo demo

17 Strongly Typed DataSet Deal with DataSets, Tables, and Rows as Objects Columns and Relations as properties Class Generated At Design Time Inherits from DataSet Schema coded into the class Benefits Compile time type checking Statement completion Concise, readable code

18 Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

19 .NET Data Provider DataReader Command Connection Sync Unified Architecture Controls, Designers, Code-gen, etc DataSet XmlReader XmlText-ReaderXmlNode-Reader XSL/T, X-Path, Validation, etc XmlData- Document Data-Adapter

20 ADO.NET And XML (1) The DataSet Loads/saves XML data into/out of DataSet Schema can be loaded/saved as XSD Schema can be inferred from XML Data

21 ADO.NET And XML (2) Data is XML is Data XmlDataDocument unifies XML and Data Simultaneously exposes data relationally or as XML Exposes a relational view over structured XML Plugs into entire stack of XML services Subclass of XmlDocument – it’s a DOM Retains fidelity of underlying document Plugs into entire stack of Data services Can obtain a DataSet view of an XmlDataDoc Relational and XML views stay in sync

22 Scenarios Enabled Simultaneously expose data relationally or as XML Good for semi-structured data Multiple tools on same data Map interesting subset relationally using schema Use natural object model for each subset Both DOM and DataSet can “grow up”

23 Accessing XML Data XML Navigation and Selection XML Format in ADO.NET vs. ADO 2.X Synchronization of Relational and XML Views of data demo demo

24 Session Topics ADO.NET Architecture ADO.NET Object Model ADO.NET and XML Summary and Questions

25 Session Summary A natural evolution of ADO Designed with extensive XML support Closely integrated with the.NET Framework Provides fast and efficient mechanisms for connected data access and disconnected data manipulation Try it – You’ll Like it !!!

26 Community Resources http://www.microsoft.com/communities/default.mspx Most Valuable Professional (MVP) http://www.mvp.support.microsoft.com/ Newsgroups Converse online with Microsoft Newsgroups, including Worldwide http://www.microsoft.com/communities/newsgroups/default.mspx User Groups Meet and learn with your peers http://www.microsoft.com/communities/usergroups/default.mspx

27 Suggested Reading And Resources The tools you need to put technology to work! TITLEAvailable Microsoft® ADO.NET (Core Reference): 0-7356-1423-7 Today Microsoft Press books are 20% off at the TechEd Bookstore Also buy any TWO Microsoft Press books and get a FREE T-Shirt

28 Ask The Experts Get Your Questions Answered I will be in the Microsoft Ask The Experts area during the following hours: Wednesday13:00 – 14:00 Thursday13:00 – 14:00

29 evaluations evaluations

30 Questions?

31 © 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Download ppt "DAT200 Microsoft® ADO.NET for ADO Classic Developers: Introducing ADO.NET Jackie Goldstein Renaissance Computer Systems"

Similar presentations


Ads by Google