Professional Documents
Culture Documents
MySQL, LINQ and The ADO - NET Entity Framework Presentation
MySQL, LINQ and The ADO - NET Entity Framework Presentation
Agenda From DataSets to data access layers Introducing LINQ Using LINQ to access your data The ADO.NET Entity Framework Introducing ADO.NET Data Services Summary
Drawbacks
Developers must become SQL experts to build advanced queries Code becomes more complex when app model and database schema diverge
Drawbacks
Data access code quickly gets complex
Classes that span multiple tables Handling inheritance hierarchies Note: Patterns and frameworks emerge
LINQ to DataSet
Extended for untyped and strongly typed
Agenda From DataSets to data access layers Introducing LINQ Using LINQ to access your data The ADO.NET Entity Framework Introducing ADO.NET Data Services Summary
Limitations
All client-side processing
Limitations
Supports limited mapping scenarios No provider model for extensibility
Agenda From DataSets to data access layers Introducing LINQ Using LINQ to access your data The ADO.NET Entity Framework Introducing ADO.NET Data Services Summary
LINQ to Entities
Agenda From DataSets to data access layers Introducing LINQ Using LINQ to access your data The ADO.NET Entity Framework Introducing ADO.NET Data Services Summary
Sweet spot:
Strongly typed queries and results
Compile-time type checking and Intellisense
Results returned as objects: entities / projections Queries must be well defined at compile time
Sweet spot:
Strongly typed results, text-based queries Results returned as objects: entities / projections Queries more loosely defined at compile-time
Sweet spot:
Untyped queries and results Results returned as DataReaders Queries can be generated purely at run time
No application model classes needed at compile time
Agenda From DataSets to data access layers Introducing LINQ Using LINQ to access your data The ADO.NET Entity Framework Introducing ADO.NET Data Services Summary
Agenda From DataSets to data access layers Introducing LINQ Using LINQ to access your data The ADO.NET Entity Framework Introducing ADO.NET Data Services Summary
Summary - LINQ
Represents a revolution for developers
Query your objects using SQL-like syntax LINQ to DataSet
Rich query scenarios for data residing in a DataSet
LINQ to Entities
Provider model for working with other data stores Supports enterprise mapping scenarios
Enterprise-grade data scenarios Provider model for working with other data stores
Questions?