Looking for a technique to reduce "controller repetition" for CRUD operation in ASP.NET MVC -
i developing administration part of site. consist of manipulating list of data such as:
- products
- suppliers
- tax profiles
- ...
i find task of creating controller handle crud operations of each model little repeating , prone mistake 1 controller another.
i still need adapt of these controller additional operation, not all.
does know proven approach reducing implication of controller usual crud operations?
one suggestion @ tweaking t4 template used generate scaffold methods. check out rob conery's mvc starter site see he's done (look in /web/codetemplates
in source general idea).
there other mvc libraries out there such fubumvc aim cut down on code repetition, it's not based on actual asp.net mvc framework (and it's not thing).
Comments
Post a Comment