We use many different types of query - SQL, XQuery/XPath, DataView row filters, etc.
Maybe we could enhance productivity by...
C#3 and VB9 Language Enhancements C#3 and VB9 Language Enhancements - Building to LINQ to Objects
LINQ to XML LINQ to SQL
Ship with Visual Studio 2008 Ship with Visual Studio 2008 Contain language features that enable LINQ Necessary for LINQ, but not sufficient... Also need .NET FX 3.5 - Contains a lot of new classes that make LINQ work – we’ll see some later
Creating XML Querying - Use normal axes from XML infoset
- Get full power of query expressions over XML
- Select, where, group by, etc.
Xml Namespaces
DataContext is the central class DataContext is the central class SQL is only submitted when needed Parent-child relationships are respected - Control of deferred loading
Can insert/update/delete
Query expressions over in-memory data Query expressions over in-memory data Works with untyped or typed DataSets If query returns some kind of DataRow: -
A combination of new language features, and new fx3.5 classes (with extension methods) A combination of new language features, and new fx3.5 classes (with extension methods) Freedom to implement across different kinds of data It’s TYPED... - The compiler can check your queries
- The compiler can check your results
- http://www.martinparry.com
MSDN Nuggets by Mike Taulty - http://www.microsoft.com/uk/msdn/nuggets
Visit http://msdn.co.uk Visit http://msdn.co.uk - Newsletter
- Events
- Nugget Videos
- Blogs
Dostları ilə paylaş: |