SlideShare a Scribd company logo
Joshua Clark
Consultant
Email: jclark434175@gmail.com
Blog: http://joshua-clark.blogspot.com
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
C# 3.0 Visual Basic 9.0 Others
.NET Language Integrated Query
LINQ to
Objects
LINQ to
DataSets
LINQ to
SQL
LINQ to
Entities
LINQ to
XML
Objects Relational
<book>
<title/>
<author/>
<year/>
<price/>
</book>
XML
ClevelandDayofDotNet_JoshClark
string[] mystuff =
{“linq”, “is”, “awesome”};
var wordswithl = from stuff in mystuff
where stuff.Contains(“l”)
select stuff;
foreach(var n in wordswithl)
{
Console.WriteLine(n);
}
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
Data != Objects
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
SSQLQL Query is a string
Looselybound parameters
Loosely type columns
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
XElement contacts= new XElement(“contacts”,
from c in customers
where c.Country == “USA”
select new XElement(“contact”,
new Xelement(“name”, c.CompanyName),
new Xelement(“phone” , c.Phone)
)
);
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark
ClevelandDayofDotNet_JoshClark

More Related Content

PDF
Intake 37 linq3
PDF
Intake 37 linq2
PPTX
MongoDB Aggregations Indexing and Profiling
PPT
Dev308
PPTX
Intro to mongodb mongouk jun2010
PPT
Basic Object Oriented Concepts
PPTX
Anchor Modeling ER09 Presentation
Intake 37 linq3
Intake 37 linq2
MongoDB Aggregations Indexing and Profiling
Dev308
Intro to mongodb mongouk jun2010
Basic Object Oriented Concepts
Anchor Modeling ER09 Presentation
Ad

ClevelandDayofDotNet_JoshClark

  • 1. Joshua Clark Consultant Email: jclark434175@gmail.com Blog: http://joshua-clark.blogspot.com
  • 5. C# 3.0 Visual Basic 9.0 Others .NET Language Integrated Query LINQ to Objects LINQ to DataSets LINQ to SQL LINQ to Entities LINQ to XML Objects Relational <book> <title/> <author/> <year/> <price/> </book> XML
  • 7. string[] mystuff = {“linq”, “is”, “awesome”}; var wordswithl = from stuff in mystuff where stuff.Contains(“l”) select stuff; foreach(var n in wordswithl) { Console.WriteLine(n); }
  • 14. SSQLQL Query is a string Looselybound parameters Loosely type columns
  • 17. XElement contacts= new XElement(“contacts”, from c in customers where c.Country == “USA” select new XElement(“contact”, new Xelement(“name”, c.CompanyName), new Xelement(“phone” , c.Phone) ) );