Sunday, 15 May 2011

c# - Generic object controller in MVC, can you improve my code? -


I am creating an application that will display a list of items in a datagrid (any type of object). , And to update any item, the user code will know nothing about displaying the object to runtime, can you improve your code for updates? I am using FormColle to get an item from the form and to make an example of my class based on routing information, i.e. will remove the object (hardcoder employee, for example) from the URL and make an example of this.

  [http: //tipoost] Public Action Result Description {Try (Object stored in foreign currency) {// Tudo has established a form value container for new object string testing. = Archive [item. Toaster ()]; } Assembly assembly = Assembly assembly Gate Accelerating Assembly (); Dynamic Update Object = Current Assembly. Create Science ("Employee");  

Take a look at ModelVisualizer in MVCContrib. It can display a collection of items that you can start from there.


No comments:

Post a Comment