Download presentation
Presentation is loading. Please wait.
Published byMelanie Oliver Modified over 9 years ago
1
Visual Studio ®.NET Data with XML Carlotta Eaton (www.nr.vccs.edu/eaton) Associate Professor of IST New River Community College Slides by Microsoft Modified by Carlotta Eaton
2
Agenda ADO.NET ADO.NET Visual Studio.NET Tools Visual Studio.NET Tools XML Designer XML Designer
3
Session Prerequisites XML Knowledge XML Knowledge Development Knowledge (Web or Client Server) Development Knowledge (Web or Client Server) Level 200
4
Agenda ADO.NET ADO.NET Visual Studio.NET Tools Visual Studio.NET Tools XML Designer XML Designer
5
ADO.NET Key Concepts Native Support For XML Native Support For XML Focuses on Most Frequent Focuses on Most Frequent Streaming data Large result sets Maximum throughput and performance Client side static data In-memory relational view Separation of data, view, and database implementation specifics Minimize Possibility For Mistakes Minimize Possibility For Mistakes Server-side static cursors Forget to MoveNext
6
ADO.NET Versus ADO Explicit Model for Updates Explicit Model for Updates XML: built-in serialization and relational mapping XML: built-in serialization and relational mapping Relational object model Relational object model ForEach rather than MoveNext ForEach rather than MoveNext Extend schema at runtime Extend schema at runtime
7
ADO.NET Background Evolve ADO to multi-tier architecture Evolve ADO to multi-tier architecture Interoperability Interoperability Based on standards like XML, XSD Scalability Scalability Targets distributed, disconnected web scenarios Productivity Productivity Common programming model over heterogeneous data
8
ADO.NET ADO.NET Architecture Presentation Tier Business Tier Data Tier Business to Business (BizTalk, for example) Web Forms Windows Forms XML Internet Intranet Data Object (Class) Data Set SqlDataAdapter SqlDataAdapter d d IE MyApp.exe
9
ADO.NET DataSet In memory store for client, middle-tier data In memory store for client, middle-tier data Relational view of data Relational view of data XML to the core XML to the core Loads/saves data as XML Loads/saves relational schema as XSD Disconnected, remotable object Disconnected, remotable object No knowledge of data source No knowledge of data source Relation Row Constraint Column Table DataSet Tables Columns Constraints Rows Relations
10
ADO.NET Typed DataSet Class generated by the designer Class generated by the designer Inherits from DataSet Inherits from DataSet Schema coded into the class Schema coded into the class Concise, readable code Concise, readable code Compile time type checking Compile time type checking ds.Tables(“Customers”).Rows(0).Columns(“Name”) = _ “Steve Ballmer” ds.Customers(0).Name = “Steve Ballmer”
11
ADO.NET DataAdapter Manages exchange Manages exchange between DataSet and data source ADO-like connections and commands ADO-like connections and commands Interacts with DataSet to provide disconnected functionality Interacts with DataSet to provide disconnected functionality Managed Provider SDK Managed Provider SDK DataSetCommand Connection SelectCommand UpdateCommand InsertCommand DeleteCommand TableMappings
12
Agenda ADO.NET ADO.NET Visual Studio.NET Tools Visual Studio.NET Tools XML Designer XML Designer
13
Visual Studio.NET Tools Component Designer Component Designer XML Designer XML Designer Schema Designer Schema Designer Web Services/Web References Web Services/Web References
14
Visual Studio.NET Tools Component Designer DataAdapter Wizard DataAdapter Wizard Auto-generate Update/Delete/Insert statements Auto-config parameters collection for SQL statements and stored procedures Generate Typed Datasets Generate Typed Datasets Table Mappings Dialog Table Mappings Dialog Map database tables/columns to new or existing Typed DataSets
15
Visual Studio.NET Tools Web Services / Web References Web Services Web Services Stream DataSets over the wire as XML Publish schemas to client applications Web References Web References Discover and consume methods, schemas Program against Web Services as objects
16
Agenda ADO.NET ADO.NET Visual Studio.NET Tools Visual Studio.NET Tools XML Designer XML Designer
17
XML Designer XML Documents and Schemas XML Documents/Data XML Documents/Data XSD Schemas XSD Schemas W3C recommended XML schema language Replaces DTDs Describes shape/structure of XML data Validation of XML data Contracts for data exchange Map to relational schemas
18
XML Designer XML Documents and Schemas Visually design XML Data and XSD Schemas Visually design XML Data and XSD Schemas Rich XML source editing Rich XML source editing Drag/drop creation of schemas from database Drag/drop creation of schemas from database Infer schemas from XML data Infer schemas from XML data Generate typed DataSets Generate typed DataSets
19
Summary Data = XML = Data Data = XML = Data ADO.NET = distributed, disconnected, scalable, XML-based data architecture ADO.NET = distributed, disconnected, scalable, XML-based data architecture Visual Studio.NET = RAD for multi-tier data apps Visual Studio.NET = RAD for multi-tier data apps
20
For More Information… MSDN Web site at MSDN Web site at msdn.microsoft.com Microsoft ® Official Curricula (MOC) Microsoft ® Official Curricula (MOC) MOC 2063 Building ASP.NET Applications MOC 2145 Programming the Microsoft.NET Framework with Visual Basic ®.NET MOC 2349 Programming the Microsoft.NET Framework with C#
21
MSDN Essential Resources for Developers Training & Events MSDN Training, Tech-Ed, PDC, Developer Days, MSDN/Onsite Events Subscription Services Online Information Membership Programs Print Publications Library, Professional, Universal Delivered via CD-ROM, DVD, Web MSDN Online, MSDN Flash MSDN User Groups MSDN Magazine MSDN News
22
Windows ® Forms with Web Services Demonstration #2
23
Questions And Answers
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.