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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:46:44+00:00 2026-05-12T11:46:44+00:00

Am I right that using NHibernate (or any other ORM) removes the necessity of

  • 0

Am I right that using NHibernate (or any other ORM) removes the necessity of DAL?
Or not?

  • 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-12T11:46:44+00:00Added an answer on May 12, 2026 at 11:46 am

    You need a DAL, the question is what do you do in the DAL. In a .NET project with NHibernate, I use this organisation

    • MyProject.Core.DomainModel : in this project only the .cs and mapping files (.hbm.xml)
    • MyProject.Repo : in this classes you use NHibernate method like Get, Load, make query ….
    • MyProject.Service : from these classes, I call the MyProject.Repo methods
    • MuProject.UI : ASP.NET, ASP.NET MVC, Winforms …..
    • MyProject.Service.Tests : all the unit test to test the service

    I give you an example, I’d like get all active Employee and sort them.

    in my UI, I call MyProject.Service.EmployeeService.GetActive(); in getGetActive, I call a function in PyProject.Repo to get active employee. When I have the result back (in the service method), I do an order with Linq and return the list ordered.

    To resume, the Repo project, it’s access DB via NHibernate and Service it’s the business.

    It’s my opinion, it’s like this I do it’s may be not the best way, not the only way, but it’s my way 🙂

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

Sidebar

Related Questions

I was not sure if it was me, that was not using the right
Right now I havae a menu, that I'm using jquery to do a fade
Right now I'm using a few scripts to generate files that I'm including as
I am using autoconf. Right now I have an intermediate .cpp file that is
Throughout a Bison grammar I am using right recursion, and I have read that
I have clouds that are scrolling left to right. I'm using an OrthographicCamera to
It now makes sense that the versions aren't right. I know I am using
I have a window that contains several rather complex views. Right now, I'm using
Do I read the NSHTTPCookieStorage documentation right that you can't delete other cookies than
I am using NHibernate 3.1 and Fluent NHibernate as ORM in my project. I

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.