110 likes | 253 Views
Overview. LINQ – Language INtegrated Query SQL-like syntax in C# statements to work with “queryable” collections and databases System.Data ADO.NET – ActiveX Data Objects (not) for .NET Databinding Binding control values to data in databases, xml, etc. System.IO File I/O & folder management.
E N D
Overview • LINQ – Language INtegrated Query • SQL-like syntax in C# statements to work with “queryable” collections and databases • System.Data • ADO.NET – ActiveX Data Objects (not) for .NET • Databinding • Binding control values to data in databases, xml, etc. • System.IO • File I/O & folder management
LINQ Intro & Resources In a LINQ query, you are always working with objects. You use the same basic coding patterns to query and transform data in XML documents, SQL databases, ADO.NET Datasets, .NET collections, and any other format for which a LINQ provider is available.
LINQ Example with Generics Object intializers (>= 3.0 Framework)
System.Data (ADO.NET) DataReader – connected, read-only,
Npgsql ADO.NET Provider for PostgreSQL Writes the values of the Name column to the console.
System.Data (ADO.NET) DataSet – disconnected, read/write
System.IO The System.IO namespace contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support.