Thursday, June 30, 2011

What’s the Difference Between a Value Provider and Model Binder?

What’s the Difference Between a Value Provider and Model Binder?


What’s the Difference Between a Value Provider and Model Binder?

Posted: 30 Jun 2011 09:57 AM PDT

ASP.NET MVC 3 introduced the ability to bind an incoming JSON request to an action method parameter, which is something I wrote about before . For example, suppose you have the following class defined (keeping it really simple here): public class ComicBook { public string Title { get; set; } public int IssueNumber { get; set; } } And you have an action method that accepts an instance of ComicBook: [HttpPost] public ActionResult Update(ComicBook comicBook) { // Do something with ComicBook and return an action result } You can easily post a comic book to that action method using JSON. Under the hood, ASP.NET MVC uses the DefaultModelBinder in combination with the JsonValueProviderFactory to bind that value. A question on an internal mailing list...(read more)

WCF RIA Services support for EF 4.1 and Snippets

Posted: 30 Jun 2011 10:20 AM PDT

WCF RIA Services now has support for EF 4.1. Varun Parnik and Jeff Handley have details on their blogs about how to use it. One of the really interesting things Varun provides is a snippet to help setup the DbDomainService since the Wizard will not be Read More......(read more)

Reactive Extensions RTW

Posted: 30 Jun 2011 06:52 AM PDT

I'm a big fan of the Reactive Extensions (Rx) and I've put together a post or two in the past and also even done a talk or two around the topic so it was great to see that the Reactive Extensions team have put out their first full release of the framework...( read more )...(read more)

RIA Services EF Code First Support

Posted: 30 Jun 2011 01:00 AM PDT

You've been asking for it for what seems like forever now, and as of today, it's available. That's right, WCF RIA Services now supports EntityFramework Code First! Varun Puranik developed the feature, and he has blogged about it , including some very Read More......(read more)

SilverlightShow for June 20 - 26, 2011

Posted: 29 Jun 2011 08:24 PM PDT

Check out the Top Five most popular news at SilverlightShow for SilverlightShow Top 5 News for June 20 - 26, 2011. Here are the top 5 news on SilverlightShow for last week: Metro UI for RadControls for Silverlight and WPF Nokia's first Windows Phone:...( read more )...(read more)

Windows Phone 7 (Mango) Tutorial - 24 - Local Database Support, CRUD operation with Demo

Posted: 29 Jun 2011 10:30 AM PDT

In the last two chapters of the tutorial series, we discussed about the local database support in Windows Phone 7 (Mango). We learnt how to create a DataContext class from existing SQL CE database and also we learnt about the issues that arises once we...( read more )...(read more)

Hanselminutes Podcast 272 - Basics of Web Security with Barry Dorrans

Posted: 29 Jun 2011 03:24 PM PDT

Scott sits down with Microsoft Security Engineer Barry Dorrans to get a general sense of the basics of Web Security in 2011. Who are the groups in the news most often? What threats are nailing websites most often today, and are they different from classic threats? Where do we start to protect our sites? Download: MP3 Full Show NOTE: If you want to download our complete archives as a feed - that's all 271 shows, please subscribe to the Complete MP3 Feed here . Also, please do take a moment and review the show on iTunes . Subscribe: or or Zune Do also remember the complete archives are always up and they have PDF Transcripts , a little known feature that show up a few weeks after each show. Telerik is our sponsor for this show. Building quality...(read more)

No comments:

Post a Comment