LINQ avec C#3.0

2 jours | 4-NE-LINQ

Logo PDF

Formations Informatiques > Développement et Méthodes > Framework Microsoft

Prochaines sessions inter-entreprises

  • Du 05/07/2012 au 06/07/2012
  • Du 30/08/2012 au 31/08/2012
  • Du 01/10/2012 au 02/10/2012
  • Du 05/11/2012 au 06/11/2012

Objectifs

Apprendre à développer des applications avec C# 3.0 et le Framework LINQ (Language Integrated Query)

Participants / Pré-requis

Développeurs Avoir une bonne expérience en développement d’applications avec C# et du Framework 2.0.

Contenu

1. C# 3.0 Caractéristiques du Langage

  • Developer Productivity Features
  • Implicit typing, Object and collection initializers, Automatic?properties, Anonymous types
  • Extensibility Features, Extension methods, Partial methods
  • Functional Programming Features
  • LINQ Support Features
  • An overview of language query operators

2. LINQ Query Operators

  • Motivation for Query Operators – Declarative vs.?Imperative programming
  • Developing Query Operators – C# 2.0 Iterators, Deferred?execution
  • Categorizing Query Operators – Filtering, aggregation,?ordering, grouping, projection, and miscellaneous?operators
  • Language Integration of Query Operators

3. Applied LINQ to Objects

  • Using Query Operators with Objects
  • Customizing Query Operators
  • The Query Pattern
  • Examples of LINQ to Objects – Reflection, File System,?Strings, WCF Contracts

4. LINQ to XML

  • Introducing the XElement API
  • Functional XElement Construction
  • Querying XElement DOMs
  • Axis Methods

5. LINQ to SQL

  • LINQ to DataSet – Why DataSets are not enough
  • LINQ to SQL as an Object-Relational Mapper
  • – Mapping?using attributes, mapping using external XML mapping?files
  • Mapping inheritance relationships
  • The Data Context – Queries, updates, inserts, deletes, stored procedures and database functions, custom SQL?strings
  • database creation from schema, transactions, preloading?and tracking data, optimistic locking and concurrency?control
  • Visual Studio LINQ to SQL Designer vs. SQLMetal

6. Beyond LINQ

  • Overview of Parallel LINQ
  • Overview of ADO.NET Entity Framework and Data Services
  • Overview of Custom Query Providers
  • Performance Considerations of LINQ to Objects
  • Performance Considerations of LINQ to XML
  • Performance Considerations of LINQ to SQL
  • After completing this module, students will be able to:
  • Understand the Microsoft road-map
  • Lambda expressions, Expression trees
 
Aix Ajaccio Albi Amiens Angers Annecy Bastia Bayonne Belfort Blois Bordeaux Bourges Brest Caen Chambery Chartres Chateauroux Châlons-en-Champagne Clermont-Ferrand Colmar Dax Dijon Épinal Grenoble ile de la Réunion La Défense La Rochelle Le Mans Lille Limoges Lyon Marseille Metz Montpellier Mulhouse Nancy Nantes Nice Niort Orléans Paris Pau Périgueux Poitiers Reims Rennes Rouen Saint-Brieuc Saint-Dié-des-Vosges Saint-Etienne Strasbourg Toulouse Tours Valence Vannes Vincennes