c# - Changing mvc projects into mvc5 area -
i have time created few mvc websites. other day super suggested put them 1 solution - more or less - related each other. have come long way making projects work more or less on own.
yesterday hit little bump put 1 project log in in order register data. have moved login code first website (front?) , works. when wanted create link (actionlink) link registration project, started doing research on moving/transforming/changing project area in mvc5.
so question: has moved/transformed/changed mvc5 (or 4 or 3) project mvc5 area? there worry when doing this?
there several things consider when merging project.
- routes , namespacing - if controllers have same names in multiple areas, need add namespace entry route entries. details here http://haacked.com/archive/2010/01/12/ambiguous-controller-names.aspx/
- make sure have area registration file sets each area. add 1 area, copy it's registration file , rename appropriately
- script , css dependencies - make sure added root, seperate them in area folders if like, add them in @ correct area using section in layout dependencies
- adding hyperlink between areas needs include area name if have conflicting controllers , can check these answers how specify area name in action link?
think covers things have found when doing areas
si
Comments
Post a Comment