0 Bewertungen0% fanden dieses Dokument nützlich (0 Abstimmungen)
15 Ansichten20 Seiten
This document discusses different methods of data access in the .NET environment from C#. It covers traditional standard C# file I/O, .NET data streaming classes, embedded SQL, and ADO.NET. The presentation includes demos of creating C# applications using each of these data access methods. It illustrates how to perform tasks like reading and writing files, connecting to and querying databases, and displaying retrieved data.
This document discusses different methods of data access in the .NET environment from C#. It covers traditional standard C# file I/O, .NET data streaming classes, embedded SQL, and ADO.NET. The presentation includes demos of creating C# applications using each of these data access methods. It illustrates how to perform tasks like reading and writing files, connecting to and querying databases, and displaying retrieved data.
This document discusses different methods of data access in the .NET environment from C#. It covers traditional standard C# file I/O, .NET data streaming classes, embedded SQL, and ADO.NET. The presentation includes demos of creating C# applications using each of these data access methods. It illustrates how to perform tasks like reading and writing files, connecting to and querying databases, and displaying retrieved data.
Environment Fujitsu Software Corporation Customer Training Series Presented by: Tim OBrien Senior Systems Engineer Fujitsu Software Corporation PAGE 2 Fujitsu Computer Systems Data Access in the .NET Environment I Types of file I/O available I .NET file I/O classes I S! in t"e .NET Environment I #$O.NET I Create a CO%O! application using stan&ar& CO%O! file I/O PAGE 3 Fujitsu Computer Systems Data Access in the .NET Environment (Cont) I Create a CO%O! application using .NET &ata streaming classes I Create a CO%O! application using S! I Create a CO%O! application using #$O.NET PAGE 4 Fujitsu Computer Systems Types of fie !"# avaia$e I Tra&itional Stan&ar& CO%O! file I/O is available ' Se(uential) *elative an& In&e+e& file I/O I .NET provi&es &ata streaming classes for file I/O t"at are accessible from CO%O! PAGE % Fujitsu Computer Systems Types of fie !"# avaia$e (Cont) I Embe&&e& S! is supporte& for O$%C access I #$O.NET classes are available to CO%O! PAGE & Fujitsu Computer Systems .NET fie !"# casses I Foun& in System.IO.File namespace I Complete set of functions for manipulating t"e file system I ,rovi&es support for creating) managing an& &eleting files an& &irectories PAGE ' Fujitsu Computer Systems ()* in the .NET environment I Embe&&e& S! may be co&e& &irectly in CO%O! programs I %ot" static an& &ynamic S! are supporte& I -a.es use of O$%C to access &ata sources at runtime PAGE + Fujitsu Computer Systems AD#.NET I ,referre& mec"anism for accessing relational &atabases I Tec"nology focus on scalability) performance) an& interoperability on multiple platforms I Implements a &isconnecte& &ata access arc"itecture PAGE , Fujitsu Computer Systems AD#.NET (Cont) I Integrate& wit" /-! I 0roupe& in content component classes an& manage& provi&er classes to separate &ata manipulation from &atabase access PAGE -. Fujitsu Computer Systems AD#.NET (Cont) I Content components encapsulate &ata an& consist of $ataSet) $ataTable) $ataColumn) $ata*ow) $ata1iew) an& $ata*elation classes I -anage& provi&er classes provi&e t"e actual connection to t"e &atabase being accesse& along wit" &ata rea&er an& &ata a&apter classes PAGE -- Fujitsu Computer Systems AD#.NET Dia/ram PAGE -2 Fujitsu Computer Systems (tan0ar0 C#1#* fie !"# I Illustrate t"at stan&ar& tra&itional CO%O! file I/O is available in t"e .NET environment I Create a CO%O! Class I *ea& a Se(uential file I S"ow t"e &ifference between Static an& Instance -et"o&s accessing files I Implement E+ception 2an&ling PAGE -3 Fujitsu Computer Systems DE2# PAGE -4 Fujitsu Computer Systems .NET 0ata streamin/ casses I Illustrate t"at .NET &ata streaming classes are accessible from CO%O! I Create a se(uential file I 3rite &ata to t"e new file 4Stream3riter5 I *ea& &ata bac. from t"e new file 4Stream*ea&er5 PAGE -% Fujitsu Computer Systems Demo PAGE -& Fujitsu Computer Systems C#1#* appication 3sin/ ()* I Illustrate t"at embe&&e& S! is available from CO%O! I Illustrate "ow to set up an O$%C &ata source I Create) !oa& an& *ea& a table in -icrosoft #ccess I $isplay t"e &ata retrieve& to t"e console PAGE -' Fujitsu Computer Systems Demo PAGE -+ Fujitsu Computer Systems C#1#* appication 3sin/ AD#.NET I Illustrate t"at #$O.NET is available from CO%O! I Illustrate "ow to set up an #$O.NET connection I #ccess a table in S! Server retrieving &ata I $isplay t"e &ata retrieve& to t"e console PAGE -, Fujitsu Computer Systems Demo PAGE 2. Fujitsu Computer Systems )3estions