Tagged Questions
2
votes
1answer
126 views
Choosing between the view and the controller for my code
I'm aware there are a lot of topics about MVC design but it's hard to find good explanations: what I should do, what are the consequences of the different possibilities...
So I'm working on an ASP ...
4
votes
5answers
1k views
Is this a good practice or not?
I have a colleague who has come up with a way of 'genericizing' information from a database so that all his web application's drop-down lists can share the same object in his MVC.NET C# code and ...
0
votes
1answer
105 views
Design MVC site such that UI developer can work without access to data tier? [closed]
I'm working on an ASP.NET MVC site (using Team Foundation Service for source control) that I've divided into a few separate projects under one solution:
Project.WebAPI (Main entrypoint, contains ...
0
votes
1answer
290 views
Migrating old Asp.net 1.1 project to mvc 3 or 4
we have to migrate a very old project that are having more than 500 web forms and 400 tables and it is hugely depends on stored procedures, the current specification is:
Asp.Net : .NET version 1.1
...
1
vote
1answer
207 views
ASP.NET MVC SoC when dealing with back end objects (design decision)
I had a discussion with some peers and even some technical leads in the team around this and Im all for the purist MVC approach. Especially when the project is in its infant stages (its easy to ...
2
votes
1answer
94 views
Where does Web Reference go in 3-layer app
I have a 3 layered application.
Presentation Layer (PL): ASP.NET MVC app
Business Logic Layer (BLL) project
Data Access Layer (DAL) project
I need to add a Web Reference to a service for a ...
0
votes
1answer
135 views
Are there any concerns with using a static read-only unit of work so that it behaves like a cache?
Related question: How do I cache data that rarely changes?
I'm making an ASP.NET MVC4 application.
On every request the security details about the user will need to be checked with the ...
5
votes
2answers
2k views
MVC + 3 tier; where ViewModels come into play?
I'm designing a 3-tiered application using ASP.NET MVC 4. I used the following resources as a reference.
CodeProject: MVC + N-tier + Entity Framework
Separating data access in ASP.NET MVC
I have ...
7
votes
2answers
4k views
.NET MVC project architecture / layering
When planning the architecture for a mid-large scale MVC web application how do you implement the layers to be as decoupled as possible and easy to test? (basically follow best practices) Let's say ...
0
votes
1answer
138 views
Properly structure an existing project into the MVC architecture
I'm taking a legacy classic asp project up to more modern technology (I've been working with ASP.NET MVC lately so using this concept is stuck in my mind), but I'm trying to think of how to structure ...
3
votes
1answer
125 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
380 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
586 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 ...
7
votes
3answers
4k 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, ...
2
votes
1answer
2k 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 ...
9
votes
3answers
3k 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. ...
1
vote
2answers
219 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, ...
6
votes
1answer
588 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 ...
13
votes
2answers
8k 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, ...
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 ...
10
votes
2answers
835 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
156 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
814 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
{
...