1. Daniel N. Egan Microsoft Regional Director – California Microsoft MVP – ASP.Net Partner/Chief Architect - Odyssey Consulting Group
2.
3.
4.
5.
6.
7. “ Object/relational mapping is the Vietnam of Computer Science". ~Ted Neward (http://blogs.tedneward.com/2006/06/26/The+Vietnam+Of+Computer+Science.aspx)
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19. “ Language is the source of misunderstandings.” ~ Antoine de Saint-Exupery (1900 - 1944)
20.
21.
22. 1 using System; 2 3 namespace ConsoleApplication1 4 { 5 class Program 6 { 7 public string Name { get ; set ; } 8 9 static void Main( string [] args) 10 { 11 var p = new Program(); 12 p.Name = "Bart" ; 13 } 14 } 15 }
23.
24.
25.
26.
27. In a nut-shell, partial methods are a light-weight replacement for events designed primarily for use by automatic code generators.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37. Let’s Take a 15 Minute Break After the break we will start looking at Linq
38. “ It is a mistake to try to look too far ahead. The chain of destiny can only be grasped one LINQ at a time.” ~Sir Winston Churchill (1874 - 1965) – modified slightly ;)
39.
40.
41. LINQ enabled data sources LINQ To Objects Objects LINQ To XML <book> <title/> <author/> <price/> </book> XML LINQ enabled ADO.NET LINQ To DataSets LINQ To SQL LINQ To Entities Relational Others… VB C# .NET Language-Integrated Query
42. “ Syntax, my lad. It has been restored to the highest place in the republic.” ~John Steinbeck
43. var query = dc.Recipes .W here (r => r.Title.Contains( “Chocolate” ) ) .S elect (r => new{ r .Title, r.NumberOfServings}) ; Extension methods Lambda expressions Object initializers Anonymous types Implicitly Declared Local Variables Extension methods