-1
votes
0answers
13 views

Asp.net MVC in 3-tier architecture example

I'm looking for a 3-tier architecture solution with MVC as presentation layer to learn from. Is there any project I could download or a good article for this ? I'm not looking for theory, but more ...
0
votes
2answers
23 views

Use “@” in html5 input pattern attribute with MVC

Does anyone know how I can use a "@" within the pattern attribute on a HTML5 email input having a MVC page? <input type="email" pattern="^[a-zA-Z0-9._+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$"> At ...
1
vote
2answers
55 views

How to return validation errors from service class methods?

Can you give me an example of how to return validation errors from a service class used in a web application. What do you think about this approach below? using System; using System.Linq; using ...
0
votes
1answer
66 views

c# calling method and then property (design class structure)

public static class WebConfig { private static IList<SystemConfigs> sysconfkeys; static WebConfig() { sysconfkeys = systemconfigrep.GetAllSystemConfig(); } private static ...
0
votes
1answer
33 views

asp.net mvc accessing the variables in your application one hit

public static class WebConfig { private static IList<SystemConfigs> sysconfkeys; static WebConfig() { sysconfkeys = systemconfigrep.GetAllSystemConfig(); ...
1
vote
3answers
165 views

MVC 4 with repository and unit of work pattern

I knew that in mvc it is good to use repository pattern and unit of work class as design pattern in ASP.net MVC project.(Business logic in service layer.) My question is, I am new to MVC 4 introduce ...
0
votes
0answers
30 views

Models and patterns of architecture used in the Entity Framework

I have an MVC application, using Model First in the Entity Framework to access a relational database. What I am interested in is the architectural patterns that the framework uses to work. For ...
1
vote
3answers
52 views

Adding dynamic attributes to a model

I can't wrap my mind around this issue and haven't found the correct search keys yet: I would like to have several categories of items in which all items have specific attributes. Those attributes ...
1
vote
1answer
97 views

Integrating Dynamics CRM SDK with ASP MVC

I have recently been reading up on the MVC tutorials on ASP.NET and most if not all of the tutorials use Entity Framework and DbContext to perform CRUD operations on data. I'm planning to create an ...
3
votes
1answer
54 views

How should I design my business layer to handle Sql Server and Mongo DB based on configuration setting

Currently we are using Sql Server and Entity framework in our application. We have our own custom membership provider which is based on Sql Server. We are using EF as ORM. We are in the process of ...
1
vote
3answers
420 views

ViewModels with asp.net mvc 4 and EntityFramework whats the Point

I'm debating with myself whats the point in creating ViewModel classes in a project which uses Entity Framework? I currently have a project which uses EntityFramework. My solution is structured ...
1
vote
2answers
132 views

What are the advantages of using a traditional MVC framework Vs Using an HTML + Javascript + Services application? [closed]

Im right now architecting a Web application and the customer is not sure about using ASP.NET MVC or any other MVC Framework (Rails, Djando or other apply also). The customer doesnt see value in using ...
2
votes
1answer
94 views

Design Pattern to Persist Filter Selection

I would like some suggestions on the proper design pattern or method to solve an issue I’m having. Basically, in MVC3, I have a controller that has multiple actions that all simply generate table ...
1
vote
1answer
136 views

ASP.NET separate web / admin applications

I've often developed websites in asp.net webforms with an administration area which is always a folder in the root of the application, where the site also lives. Which will always be compiled into one ...
2
votes
1answer
126 views

Building a Single Page App with a Repository Pattern but no Unit of Work - where to SaveChanges?

I'm reading up on the Repository and UOW patterns and it seems like UOW takes a bunch of data, makes modifications to that data in memory, and then commits the changes at a certain point. I'd like to ...
1
vote
1answer
69 views

Choice of design pattern for ASP.NET [closed]

Okay I'm in front of a little internal debate. I'm trying to decide what design pattern I should use for my ASP.NET webshop application.I've been searching for a few and these are the ones i find most ...
0
votes
2answers
243 views

Architecture of MVC application without using entity framework

I am new in MVC application development.I am willing to develop a new project using MVC, i looked a lot for architectures that suits to MVC application. After reading many articles and blogs i came to ...
2
votes
2answers
217 views

Best MVC way to handle multiple requests between view and model

I have a .net application with a Form layer, a DB model layer (entity framework) and a Controller layer between this two layers. I need to handle this situation: User presses a button to edit some ...
3
votes
1answer
92 views

How to replace a base controller with MVC ActionFilter (or something else)?

I'm trying to improve my MVC design. On every page, I need to read a cookie and set an User object with various values based on that (not authentication related). What I currently do is have all ...
0
votes
1answer
186 views

Asp.Net MVC 4, LocalDB and separated service layer project

I'm built a forms authentication (actually I'm using the new single page application) website using Asp.net MVC 4.0 with LocalDB. I want to create a separated class lib project for service layer which ...
7
votes
2answers
267 views

Design Pattern for Creating API URL

I am building a class library that interacts with various 3rd party API's. I have used an facade pattern to provide simplified access to complicated and confusing calls, and a factory pattern to ...
0
votes
1answer
53 views

Class associated method

I am new to MVC, my issue is a concern that I have not gone about this the right way, it currently works how I expect but I am unsure about the structure and where to put the method. I have a class ...
0
votes
2answers
859 views

MVC popup\modal forms best practice

I am using MVC 3 and I am trying to find a good source that will list the best practices for using Modal dialog forms (jQuery or any other type) and\or popup windows in my application. For example: ...
2
votes
3answers
191 views

Service Locator Alternative in ASP.NET MVC [closed]

Having read Mark Seemann's blog post along with this response which references it, I understand the disadvantages of using the Service Locator pattern over dependency injection via a class ...
0
votes
1answer
152 views

Implementing DAL and BOL

I'm Using MVC 3 and I'm having trouble using Entity Framework so I'm trying to understand what would be the best approach to implement my own DAL. I manage several main entities in my system: User, ...
3
votes
1answer
230 views

Repository With UnitOfWork pattern for database in MVC application

Today I would like to implement repository pattern + unit of work pattern for database connection. Is my code bellow correct?? Because this is my first implementation unit of work for database ...
1
vote
1answer
76 views

EF Saving related data

I'm quite new to EF and I'm still trying to wrap my head around it all - I'm used to building stored procedures and calling them rather than LINQ-SQL, so bear with me! I am trying to build a simple ...
1
vote
0answers
263 views

WebApi and Knockout patterns within MVC

I am having some issues around the patterns needed to bring my application into the WebApi + Knockout world. The following scenario has thrown be a bit. I have a very basic grid partial view ...
3
votes
1answer
252 views

Single Responsibility Principle in MVC controllers. Critique required

In my MVC4 app, there are some actions that need to behave differently depending on whether you are logged in (FormsAuthentication in my case) or not. For example, I have an AccountController that ...
2
votes
4answers
93 views

Injecting UnitOfWork in a Using block

I worked on a UnitOfWork / Repository / MVC application. Now that this is working all great, I want to decouple the UnitOfWork from the controllers. One way of doing it is to inject the dependency ...

1 2 3 4 5 10
15 30 50 per page