Tagged Questions
3
votes
1answer
53 views
MVC URL formatting/design
In refactoring a lot of MVC code, I have run into an issue with my URL design. For example, let's say we have a Venue object
public class Venue
{
public long ID { get; set; }
public ...
4
votes
6answers
234 views
Is MVC ever considered/applied system-wide?
I was having a discussion with a colleague and he bought up the topic of MVC and the use of ViewModels in ASP.NET MVC.
The discussion was that, in an n-layer architecture, the UI, Business Layer and ...
6
votes
2answers
289 views
Why is using named routes for generating outbound URLs a violation of Separation of Concerns?
What is separation of concerns?
In computer science, separation of concerns (SoC) is the process of
breaking a computer program into distinct features that overlap in
functionality as little ...
4
votes
2answers
688 views
How to make an ASP.NET MVC site modular
I'm in the planning stage for an employee intranet system to be built with ASP.NET MVC 4. We'd like the site to consist of separate "modules", each of which provides a different feature: messaging, ...
8
votes
3answers
2k views
How should I implement the repository pattern for complex object models?
Our data model has almost 200 classes that can be separated out into about a dozen functional areas. It would have been nice to use domains, but the separation isn't that clean and we can't change it. ...
2
votes
1answer
965 views
Modular enterprise architecture using MVC and Orchard CMS
I'm making a large scale MVC application using Orchard. And I'm going to be separating my logic into modules. I'm also trying to heavily decouple the application for maximum extensibility and ...
1
vote
2answers
186 views
Is it better to define all routes in the Global.asax than to define separately in the areas?
I am working on a MVC 4 project that will serve as an API layer of a larger application.
The developers that came before me set up separate Areas to separate different API requests (i.e Search, ...
10
votes
2answers
3k views
Separating data access in ASP.NET MVC
I want to make sure I'm following industry standards and best practices with my first real crack at MVC. In this case, it's ASP.NET MVC, using C#.
I will be using Entity Framework 4.1 for my model, ...
6
votes
1answer
351 views
When business rules affect presentation in MVC
The MVC design pattern is supposed to led itself to separating business rules from presentation.
But sometimes business rules AFFECT presentation. What is the best way to deal with this? Is that ...
2
votes
2answers
1k views
How do you organize an ASP.NET MVC 3 application with potentially hundreds of views but with only a few entry points?
Assumptions:
Minimalist ASP.NET MVC 3 application for sending emails where the view represents the contents of an email.
Over 500+ email types. I would NOT like to have 500+ actions in my controller ...
9
votes
2answers
466 views
Is it better to have separate Create and Edit actions or combine Create and Edit into one?
We are using ASP.NET MVC 2 with a Controller/View Presentation Layer and Model consisting of A Business Logic Layer, Data Access Layer [Stored Procedures and classes/methods to talk to the stored ...
0
votes
5answers
142 views
Help me in choosing appropriate pattern
From last one week i was searching for most suitable architecture for a new web application. To be honest i did web development for only 1 year (back in 2007). And from last four years i am working in ...
11
votes
4answers
520 views
Is it a “pattern smell” to put getters like “FullName” or “FormattedPhoneNumber” in your model?
I'm working on an ASP.NET MVC app, and I've been getting into the habit of putting what seem like helpful and convenient getters into my model/entity classes.
For example:
public class Member
{
...