Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6705137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:22:09+00:00 2026-05-26T07:22:09+00:00

First Appraoch /\ / \ V/ \ C <=WCF=> {Business Layer (with business logic)

  • 0

First Appraoch

   /\
  /  \
V/    \ C <=WCF=> {Business Layer (with business logic) <=> ORM <=> Database}
/      \
--------
    M

Second Approach

   /\
  /  \
V/    \ M <=WCF=> {Business Layer (with business logic) <=> ORM <=> Database}
/      \
--------
    C

Main Difference:
– In first approach, business object will have 2 versions. One loaded with properties inside business layer and other dumb version with few View specific properties to be populated by Controller. While in second appraoch, there will be one class with all properties.
– First approach seem a bit more decoupled from presentation layer

In both approach, Controller would be starting point.
As far from views I’ve recevied from different people, both are valid approaches and can be toggled as per development preference.
Please share thoughts.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:22:09+00:00Added an answer on May 26, 2026 at 7:22 am

    The first one. ViewModels (as you refer as “M” in your triad) should not know of anything in the View or in your business layer.

    The real MVC definition:

    • Model: Business layer, webservice or whatever.
    • View: UI
    • Controller: Glue between the Model and the View.

    Microsoft added the ViewModel to make the separation more clear. For starters, the view shouln’t be dependent of your domain models. And it should not contain logic.

    I’ve listed the main reasons to use view models here: http://blog.gauffin.org/2011/07/three-reasons-to-why-you-should-use-view-models/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First I will explain the structure of my project: I have a WCF-service public
I am using Database First approach to create models from existing database. I have
In my first approach with Rails I have simply create a void SayController and
I'm using the Code First approach and have the following Model: public class Person
I'm using the Code First approach to build the database in this problem. I
We are using EF 4.0 with code first approach. I have defined constraint for
I use SQL Server 2008 and Entity framework 4.1 database first approach . Is
First a little bit of background: I have a REST service in WCF 4
Scenario: Using a tiered approach with WCF services: business services returning domain / DTO
I am following WSDL-first (provided by our client) approach for developing WCF service but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.