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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:47:20+00:00 2026-05-23T15:47:20+00:00

I m developing an application with MVC 3 and Fluent NHibernate. i want to

  • 0

I m developing an application with MVC 3 and Fluent NHibernate. i want to know what will be the best architecture for application , like should we separate the Business layer , DAL and respository layer, define entity class and mapping class in business later , all the interfaces are in repository and all the data logic in DAL.
any ideas what is the best way to handle the application ?

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-23T15:47:20+00:00Added an answer on May 23, 2026 at 3:47 pm

    You could define your business entities into a separate layer. Then you could have interfaces defining the CRUD operations with those business entities (repositories). Then you would have a specific implementation of those repositories: in your case using NHibernate. This is where you would have your data access logic and FluentNHibernate mappings. Finally you would have a service layer which will define complex business operations consisting of multiple simple CRUD operations on your business entities. The business layer could also contain business validation logic.

    The service layer and the data access layer will be weakly coupled thanks to the interfaces that your repositories implement, the business layer shouldn’t know about the specific implementations of those repositories.

    Finally your MVC controllers will work with the service methods and business entities. It is in the UI layer (MVC application) where you would also define view models, so that controller actions could map between the business entities and the view models and pass those view models to the views.

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

Sidebar

Related Questions

I'm developing a ASP.NET MVC application with 3 layer classic architecture 1. data access
I am developing an MVC application using nHibernate; running through VS's built in web
I'm developing an ASP.NET MVC application that will send the user a confirmation email.
I'm developing an ASP.NET MVC application with NHibernate and I'm trying to use Automapper
I'm developing an application using asp.net mvc, NHibernate and DDD. I have a service
Hi every body i am developing a MVC application, and i want to use
I am developing my application using spring-web-mvc... Now at my Controller it returns like
I’m aware that not everyone uses a thorough architecture when developing an MVC application
I am developing an ASP.NET MVC application and I want to use OpenId. What
I'm developing an web application with asp.net mvc 2, and I'm using NHibernate (session

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.