Project Description
Various MVC utilities, designed to simplify common development scenarios.

 

News: Project moved to GitHub!

 

 




This is an effort to make life a little easier, when developing Mvc applications.

 

Projects

MvcTricks.RoundTripModelBinding project

This is an effort to simplify model binding, by automatically persisting the the model data, which is else lost when sending data to and from the client.
It is not an attempt to reinvent asp.net viewstate!

The main purpose is to avoid using a bunch of hidden values in views, for id's, collections and other values, which might even come from database queries.

The current release uses the System.Web.Script.Serialization.JavaScriptSerializer internally.
So if the JavaScriptSerializer likes it, it is probably usable here too.
Currently these custom converters (serializers) are implemented:

  • DateTimeConverter (DateTime, DateTime?)
  • MailAddressConverter (MailAddress)


The next release will feature a completely new serialization engine, written from scratch.
This engine will support IOC and interface types.
(Postponed)

Warning!

Do not use it on classes which are lazy loadable, like NHibernate entities, for example.

Note:

Some of the code used here, comes with permission from projects at UVdata A/S http://www.uvdata.dk.

Last edited Mar 4, 2013 at 7:57 AM by KTW, version 14