DNK has a spanking new server up and running like clockwork. Stability problems are a thing of the past. Our new monitoring service reports 100% uptime since the move!
4
kicks
submitted by maartenba 8 months, 4 days ago

blog.maartenballiauw.be — How about this action method, using a Person class which is a Linq to SQL entity type. It accepts a Person object as a parameter. The Person class is a Linq to SQL entity type. It's cleaner not to use the Linq to SQL data context here! Using the ASP.NET MVC ModelBinder infrastructure, I am actually able to bind action method parameters to real objects, based on simple query string parameters like, in this case, id. A custom ModelBinder maps this string id to a real Person instance from my Linq to SQL DataContext. Let me show you how I've created this ModelBinder.

Add a comment add a comment | category: | Views: 52 | Get KickIt image code
Creating a generic Linq to SQL ModelBinder for the ASP.NET MVC framewo
tags: , , | tag it

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:

No comments so far




information Login or create an account to comment on this story

Related Stories:
 

Search: