asp.net mvc - MVC3 Validation with Entity Framework Model/Database First -


i want use mvc 3 , entity framework application.

the model stored in different assembly mvc app.

the choice i'm making either use ef generate entities or use code first.

with code first, can decorate members [required] etc... how go adding attributes if ef has generated entities db?

having ef generate entities save lot of time, want mvc auto populate validation depending on how i've decorated members. make sense? if so, how that?

in case, metadatatypeattribute used. can combine partial classes achieve desired results

and way, in place more research when deciding between using database first , code first designs. not saving time when generating entities, there's more difference between 2 approaches. time saving purpose, can use ef power tools generate code first entities database - simple.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -