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 heard that you could right-shift a number by .5 instead of using Math.floor().
Do any queries exist that require RIGHT JOIN, or can they always be re-written
I am working on a project right now that involves receiving a message from
Background: I have a kubuntu laptop right now that I can't use wirelessly, i.e.
I'm developing a site right now that I've been working on for more than
I have an odd edge case right now in that a response code from
In the following, I'd like to alter the CSS such that the right-sibling is
a:3:{i:0;i:4;i:1;i:3;i:2;i:2;} Am I right to say that this is an array of size 3
Right now I have an SSIS package that runs every morning and gives me
Right now I have a JSP page that allows to sort some items, when

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.