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
Post a Comment