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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:14:15+00:00 2026-06-18T15:14:15+00:00

I am building two C# three-tier applications that get their data a very old

  • 0

I am building two C# three-tier applications that get their data a very old database Customer table that has about 100 columns. They perform some logic in the business layer and a presentation layer displays the data.

The layout of the customer table is –

CustomerID
Firstname
Lastname
DateOfBirth
Othervalue1
Othervalue2
Othervalue3
.
.
Othervalue95
Creationdate
Updatedate

For these two applications I only need the customer table, but I am building the a new data access layer with Entity Framework. Future projects will need access to other tables and will add to this access layer.

I will use the Unit of work and repository patters.

My problem is the following –

Application A needs one subset of the customer table columns

and

Application B needs a different subset of the customer table columns (there is some overlap with Application A’s needs)

How do I perform mapping from the data layer to these two independent business layers? I know I can use automapper to perform mapping from an data entity class to a business layer class, but I will have two different business layer Customer classes.

I have been reading a bit about DTO’s but I don’t see where there should go in this n-tiered application.

  • 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-18T15:14:16+00:00Added an answer on June 18, 2026 at 3:14 pm

    You can use any of these based on your application design
    1 – Map customer table to two or more Entities
    2 – Have a base entity like CustomerBase and 2 or more sub entities.
    3 – DTOs are Data Transfer Objects and they are (normally) mutable. Changing them wont result a CRUD operation on the DB.
    DTOs are used in scenarios like: Customer entity is a heavyweight object(say 100 columns) and you just need a subset of that data (say 20 columns).
    Conversion between the DTO object and the actual Entity could be implemented in many ways like auto-mapper, manually operator oveloading and more …

    Hope this helps

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

Sidebar

Related Questions

I am building a web application using ASP.NET MVC that has two very distinct
I'm building a table cell using two bound ember.js views on data. When I
Brief Explanation I am currently building a gallery that has three columns, each column
I have two manifests that I swap round when building different releases of my
I'm building a utility application that synchronizes files across two systems for Mac OSX.
I have three tables, table one (tableA) containing users data like name and email,
I'm building an app to save data and some calculations made with that data,
I'm currently PHP building a script that has to update statistics when it finishes
I am building a standard three tier application in C# 1 Console app for
I am building two arrays in c# and pass them to a js function

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.