This project is read-only.
Project Description
mvc2linq2sql is a databinder for ASP.NET MVC that make able developer to clean bind object from HTML FORMS to Linq entities. Even 1 to N relations (with EntitySet<>), and manage automatically collections: Adding, Updating and Editing entitySet from UI Html form... :)

Please if you find my contribution a little useful rate the project good!!. Thanks a lot!

COMMON SCENARIO Entity A with an EntitySet of B (another entity)... update entityref collection using Jquery while A entity Create, Modify operations only in Client Side and let the DataBinder to syncronize automatically this Collection to Linq Data Model...

I've been working with MVC pattern for several years across several platforms. I was really excited when I knew about ASP.NET MVC from Scott Gu... but when I started to use it for a real life project I was a little dissapointed when the default databinder wasn't able to map correctly between my Linq Entities and my forms.

It's a pitty, it's a great framework ... clean, clear... I love it but I think that everything gets ugly when you need to get out from the good asfalt road to make some ugly tricks with collections....like overriding my EntitySet properties in List properties... but anyway...

So I decide to make an effort in my last project and implementate my own databinder....

If you're searching this kind of thinks you won't need any explanation I think but anyway:

RESUME ABOUT WHAT IS MOOINOOI MVC2LINQ2SQL DATABINDER (or at least what I was trying it to be for... :) ...)
  1. Mapping transparent with EntitySet
  2. Manage collections automatically (if you work a little in Jquery about indexed collections)

Manage collections automatically

This means that for a view if your model has and entitySet represented for one or several input fields, this databinder would be able to recognize the primary key column in your Linq Entity to automatically add, remove or update entities in your collection without worry about anything (maybe about my mistakes in the code :) ) ...

I think that It's really good and useful, I was expecting this behavior from the begining with Linq Entities... I don't know....

Last edited Mar 12, 2010 at 11:08 AM by RicardoLopezRey, version 6