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 8743319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:39:17+00:00 2026-06-13T11:39:17+00:00

In a N-tier application, my website connects to a web reference to access business

  • 0

In a N-tier application, my website connects to a web reference to access business layer logic and to get business layer DTOs. For example, the BL may provide a definition for a Car:

public class Car() {
    public string Make { get; set; }
    public string Model { get; set; }
    . . .
}

In my ASP.NET MVC website, I need to create my own Car model object. (Maybe to add/remove a field or to add validation via data annotations).

Since I already have an object in my namespace named Car, I need to name my model object something else. There really isn’t a better name for the object though. Is there an easier way to handle these name conflicts? Alternatively, I could fully qualify the models, but this doesn’t seem ideal.

Another possibility, can I use the object from the BL, but extend it so I can add data annotations for validation?

  • 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-06-13T11:39:18+00:00Added an answer on June 13, 2026 at 11:39 am

    I have seen people simply append Model to these classes when dealing with them in their MVC applications. In your case, the class would be CarModel.

    As for extending the object, I would not recommend leaking business layer objects through to the presentation layer, as you will run into trouble later if the data changes. Rather than having to change the presentation code in every place the data is used, it will be easier to only have to change it in the conversion from Car to CarModel.

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

Sidebar

Related Questions

I have an n tier application with presentation layer, business layer, DAL and business
I need to create n-tier application with the following parts: Data server Business logic
With an existing n-tier web application using ASP.net WebForms what is the best approach
We have an n-tier web application that pulls data from SQL Server. Our Data
I'm trying to build a 4-tier Web-Application in Java. I'm using the Hibernate Framework
I'm creating a web application using asp.net & WCF as 3 tier architecture, which
I have a 3-tier application with Data access, service and presentation tiers. Where should
I'm designing a C# application Presentation ( web site + flex apps ) Business
Our company has a multi tenant asp.net web application. The application is 3 tier
I try to construct 3-tier application. In DAL I get data from database (

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.