Upload
learningtech
View
160
Download
0
Embed Size (px)
Citation preview
LEARNING TECH – WEEK 1
James Chen
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;
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()
}
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" );
});
jQuery
• jQuery UI• free-source plugins• convenient way for interactive user interface
MVC
• Basic understanding of MVC theory• Java• jsp• PHP
• Never used ASP.NET MVC• Mostly similar with pervious experience
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
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
References
• Jquery.com
• http://msdn.microsoft.com/en-us/library/vstudio/67ef8sbd.aspx
• http://www.asp.net/mvc
• LINQPad4 samples