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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:53:14+00:00 2026-05-28T16:53:14+00:00

I am planning to create different layers, so in my Visual Studio Project, I

  • 0

I am planning to create different layers, so in my Visual Studio Project, I will have:

BusinessLayer:
Contains Business objects (entities)
i.e User, Employee, Products etc

DataAccessLayer:
Entity Framework

Presentation Layers:
The Views & ViewModels

So say for example, I want to let user login to this application.

  1. View will display the UI to let User to enter information.
  2. When User press enter, execute command => ViewModel
  3. ViewModel will use Entity Framework to query the User data from database, then ViewModel will initalize an User object (from BusinessObject ), and maps the User data to the User object.
  4. This User object then will store into a static parameter for future use.

So what I really concern is:

  1. Is this correct way to design N-layers?
  2. Should I sperate each layers to different Visual Studio project?
    (i.e Business objects will be inside another project)
  3. Is it better to let Business Object to query the data it self? So in
    Business Object construtor will calls entity framework?
  4. Should I write a Repository class for use entity framework?

I don’t mind if this is complicated, because from what I have been told, this application will be huge. So I want to design it properly, to make it flexible and extendable.

Any advice will be great, thanks.

  • 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-28T16:53:15+00:00Added an answer on May 28, 2026 at 4:53 pm

    1 Is this correct way to design N-layers?

    I would not say correct , but suitable for the project. Don’t see much problems in your design, by looking on question provided.

    2 Should I sperate each layers to different Visual Studio project?
    (i.e Business objects will be inside another project)

    There is, basically, sence to do that when you’re going to reuse those layers in different projects/domains. Think about what you’re doing and what you’re possibly will do and decide if this is something you’re gonna do.

    Consider that with the choice to make them a separate projects, architecture becomes more complicated, but also more scallable. Just an example, you can provide users with sperate patch of Business Layer fix, and do not install entire software packet. I repeat this is a choice. In most cases they just select to install all in once to avoid complexity (dependency management, versioning between different parts and all that mess…)

    3 Is it better to let Business Object to query the data it self? So in
    Business Object construtor will calls entity framework?

    It’s better to have separated Query engine. More testable and scallable architecture.

    4 Should I write a Repository class for use entity framework?

    Again story about scallability. You can wrap EF, in this case you will have a possibility in one day, when you decide to relay on (say) SQLite+ORM, make change to it, without breaking all software infrastructure (as much as it possible naturally). But, consider, that implementing this you need much more time.

    Balance your resources and time, and make a choices more appropriate to you and your project.

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

Sidebar

Related Questions

im planning to create a movie file that might have over 16,000 frames?i know
I am planning to create a share hosting server that I will use for
I have been making plans to create a site that would contain several different
I'm planning to create a centralized log system for my application. My application contains
I am planning to create projects which will get a bit bigger than my
I am planning to create a project-based Mac application. It has its own project
Im planning to create an Alert view with three buttons, my problem is I
Iam planning to create an app, and not to publish it at the google
I'm planning to create a simple gadget to create a TO DO list application.
I'm planning to create a program for manipulating multi-track OGG files, but I don't

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.