Learning tech week_1_james
-
Upload
learningtech -
Category
Documents
-
view
160 -
download
0
Transcript of Learning tech week_1_james
![Page 1: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/1.jpg)
LEARNING TECH – WEEK 1
James Chen
![Page 2: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/2.jpg)
LINQ
• Similar to regular SQL
• fluent syntax
• Query syntax
var query = names.Where ( name => name.EndsWith(“y”) );
var query = from n in nameswhere n.EndsWith ( “y” )select n;
![Page 3: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/3.jpg)
LINQ
• joins
• grouping
var query =from c in Customersjoin p in Purchases on c.ID equals p.CustomerIDselect c.Name + " bought a " + p.Description;
from p in Purchasesgroup p.Price by p.Date.Year into salesByYearselect new{
Year = salesByYear.Key,TotalValue = salesByYear.Sum()
}
![Page 4: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/4.jpg)
jQuery
• jQuery Core• Selection
• EX: $( “div” )• Traversing
• EX: $( “#content” ).children( “div” )• Data
• EX: .data ( key, value )
$( "li" ).hover( function() {
$( this ).css( "border", "outset grey 3px" );$( this ).children().css( "color", "white" );
},function() {
$( this ).css( "border", "solid black 3px" );$( this ).children().css( "color", "grey" );
}).mousedown( function() {
$( this ).css( "border", "inset grey 3px" );$( this ).children().css( "color", "grey" );
}).mouseup ( function() {$( this ).css( "border", "outset grey 3px" );$( this ).children().css( "color", "white" );
});
![Page 5: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/5.jpg)
jQuery
• jQuery UI• free-source plugins• convenient way for interactive user interface
![Page 6: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/6.jpg)
MVC
• Basic understanding of MVC theory• Java• jsp• PHP
• Never used ASP.NET MVC• Mostly similar with pervious experience
![Page 7: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/7.jpg)
Combining
• Built sample testing website using MVC• Small sample DB• Some jQuery code• Display list, edit, create, delete• Planning to add more functionality if time allows
![Page 8: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/8.jpg)
Learning Experience
• Has experience with basic aspects
• More advanced than what was taught and used
• The more I read, the more I realize there is more to learn
![Page 9: Learning tech week_1_james](https://reader035.fdocuments.in/reader035/viewer/2022080210/5555d2d5d8b42a711f8b4aff/html5/thumbnails/9.jpg)
References
• Jquery.com
• http://msdn.microsoft.com/en-us/library/vstudio/67ef8sbd.aspx
• http://www.asp.net/mvc
• LINQPad4 samples