Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am staring a new MVC application. Which design pattern is most suitable and fit into MVC application?

Thanks,
Srinivas
Posted
Updated 7-Dec-14 23:32pm
v2

MVC itself is an architectural pattern. So when you use MVC, you are decoupling the view controller and model.
 
Share this answer
 
Comments
sris 426 8-Dec-14 5:32am    
Let me explain more about my question. Using interfaces, repository classes, conversion classes,etc,etc. Instead of architechrue I can ask you like which design patter is best suitable for MVC4 Application and can you provide the guidelines for that design pattern?
Kornfeld Eliyahu Peter 8-Dec-14 5:33am    
You may add this: http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
And also to mention that MVC is a pattern for UI - for a complete application you have to couple it with some other pattern like n-tier...
You can follow repository pattern for this.
Before deciding the architecture, you need to keep in mind many factors like
1-Loose coupling between layers
2-Code maintainability
3-Code reusability
Always try to have a generic pattern approach for reusability and also try for minimal dependency amongst the layers.
The best thing is to put the .Edmx file in the Infrastructure folder rather than in the core folder.
Please follow the following link for Onion Architecture
Onion Architecture
This is very nice and layered architecture to follow.
There are many architectures but this is a new and very simple to use.
hope this helps
Thanks
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900