Follow Fantora on Twitter
Fantora Word of Classified Ads and Community Forum
Welcome Guest Search | Active Topics | Members | Log In | Register

MVC Application Structure

Options
hari
Posted: Wednesday, July 06, 2011 12:45:13 PM
Rank: Advanced Member
Groups: Member

Joined: 3/31/2008
Posts: 113
Points: 339
Location: London

MVC Application Structure

Hi,

In need of some help. I am confused about how to layout my application structure. I have looked at open source apps but still confused as they each have different structures.

I am thinking to have a separate folder for Business Logic. Within that, i will have a class for lets say customerService. This class will contain all linq queries. I will then have another folder under Business Logic for data classes. In this i will have a class customer. This will contain the getters and setters.

I assume that the model folder will contain a CustomerModel.

So the structure will be

Business_Logic

------Data

--------------customer (getters and setters)

------DBAccess

--------------customerService (linq queries)



Model

------CustomerModel (????????)



Controller

-------CustomerController



View

-------Views here etc etc



Questions:

Am i headed in the wrong direction for the MVC application structure? Do I need a Business Logic folder?

If the above example is more or less correct, what functions will the CustomerModel hold? Will it literally just reference the Business Logic customerService class?

I can’t find any relevant material on the Internet. I am literally struggling in getting the structure correct.
ca4nul
Posted: Wednesday, July 06, 2011 12:45:55 PM
Rank: Advanced Member
Groups: Member

Joined: 11/9/2007
Posts: 560
Points: 1,011
Location: GB

MVC Application Structure

Hi friend,

look at this I use this kind of architecture in my project:

View

Model

Data

--->Project.Data(Connect Data to the Core)

------->Linq To Sql Queries

---->Project.Core(Connect Core to the Model To get the values of the database)

-------->Dependensy Injection

I can explain you with more details if you want!

Good Luck!
Users browsing this topic
Guest

 Related
how to remove 404 error
Linq query in MVC
creating a profile in commerce server 2009 pragmatically
A little confusion on ICallbackEventHandler
using AdRotator control in ASP.Net
Could not load file or assembly 'XXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ..
Commerce Server 2009 Starter Site step by step
nopCommerce ASP.NET/C# based opensource shopping cart Installation
MVC Application Structure
'System.Exception' was thrown
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Fantora Blog | Discount Shop UK | Discount Shop USA | Discount Shop Canada | Discount Boutique France | Discount Shop Deutschland | Discount Shop Italia | Descuento Shop España

Free Classified ads, Webmaster Forum & Technology Reviews | Fantora Free Classified Ads | Buy & Sell Electronics, Mobile phones & Accessories | fantora Forums Community | Buy & Sell DVD, Games and Consols | Free eBooks & Softwares | SEO & Affiliate Marketing Discussion | Programming Language Forum (.NET, ASP, PHP, SQL) | Free Classified Ads | General Stuff (Movies, Chat, Comics) | Free Online English Movies & Reviews | Free Online Hindi Movies & Reviews | Australia & New Zealand Immigration Forum | Europe immigration forum | Canada Immigration Forum | Ireland Immigration Forum | US Immigration Forum | United Kingdom Immigration Forum

Main Forum RSS : RSS

Powered by: YAF.NET
Copyright © AI Logica All rights reserved.
This page was generated in 0.125 seconds.