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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:32:13+00:00 2026-05-26T18:32:13+00:00

I am building a DAL layer for fun and learing (some fun i have),

  • 0

I am building a DAL layer for fun and learing (some fun i have), and i want it to be the generic as can be.
Is it smart to create a DAL manager that can create the Dal specific by using the generic <>.
For example i have a class Customer with the some property lets say Name but it does not matter.
and for creating the specific Dal class we will do this :

IDal customerDal = DalManager<ICustomer>.GetDal();

i imaging using IoC under the hood and so on.
1. Do you think it is a good idea ?
2. Is there a an example project some where on the web (a good one, i found some bad ones).

Thank you very much
you are all awesome.

  • 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-26T18:32:14+00:00Added an answer on May 26, 2026 at 6:32 pm
    1. No, this is a bad idea. NHibernate is already an abstraction over your database, you don’t need another one.

    2. See http://code.google.com/p/nhjump/ for an example of the Repository pattern being used with NHibernate

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

Sidebar

Related Questions

Building my first SL MVVM application (Silverlight4 RC) and have some issues i don't
Building a commercial product may use various open source libraries that have use of
In a PHP project I'm working on we need to create some DAL extensions
Building a solution from Visual Studio in mono develop seems to have some issues.
Building a mobile site and wanted to create a rotator that would work just
Building a rails B2B application that will have various users. I'm pretty clear on
I'm building what could be called the DAL for a new app. Unfortunately, network
Building the same project (without any changes) produces binary different exe-files: some small regions
building a site using PHP and MySQL that needs to store a lot of
Building a website that has English & Japanese speaking users, with the Japanese users

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.