MVC 4.0, Knockout.js, Bootstrap and EF6.0
Download
Report
Transcript MVC 4.0, Knockout.js, Bootstrap and EF6.0
MVC 4.0, Knockout.js,
Bootstrap and EF6.0
FAST, FLEXIBLE AND RESPONSIVE QUICK TO MARKET WEBSITES.
Web Forms to MVC Paradigm Shift
Razor syntax (introduced 3.0)
No page events
No View State
Helpers not Controls
Follows pattern set by W3C for website design
HTML is the main content delivery mechanism
JavaScript is the main client behavior mechanism
CSS is the main client Format Mechanism
Why, that sounds a lot like classic ASP?
Not even close, BUD!!!
RESTful (a good example is a library site
http://www.library.com/BooksByAuthor/King) if this was an actual restful
site this would take us to all books by authors with the last name King.
Cleaner HTML on both the client and the designer page.
Easier to implement AJAX callbacks and work with JSON data
No longer tied to the Form
Access to the full .net library from
Strictly follows the MVC (design pattern)
What is Twitter Bootstrap?
It’s not another twitter client (one of the few things left that isn’t)
Has almost all of the css style tags you will ever need
HTML 5 compliant (IE 9 and up, Chrome, Safari, Firefox and Opera)
Technically it is supported in IE 8 but it looks AWFUL
It one of the quickest ways to get a professional looking site off the ground
Well documented
Why Knockout?
Plays nice with MVC
Much cleaner code (very unobtrusive)
Follows a client side MVVM (Model, View, View-Model)
Allows for automatic binding of HTML to the Model.
Almost all events and actions take place client side
Extremely easy to use out of the box
Fairly easy to extend
Entity Framework 6.0
Much more tooling
Native Async support
Code Based Configuration
Interception is much easier
look at what is sent before it gets to SQL, take that DBAs
Better Code first support for stored procedures
Questions?