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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:59:37+00:00 2026-06-11T16:59:37+00:00

My application consists of three projects. Core, DAL and BAL. Core contains Domain objects

  • 0

My application consists of three projects. Core, DAL and BAL.

Core contains Domain objects (Customer, Order, Product). It also contains basic IRepository interface IRepository<T>.

DAL contains EntityFramework specific stuff. It also contain Concrete Repositories ( CustomerRepository, OrderRepository, ProductRepository). I added these concrete repositories here as they depend on DbContext (which is EF Specific)

Now my BAL should only have dependency on Core and no dependency on DAL. I have added a dependency on NInject in this project. However, I still need to tell Ninject that it should resolve IRepository<Customer> as CustomerRepository and that is forcing me to add DAL dependency here. Is there anyway of avoid adding dependency on DAL in my BAL Project?

  • 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-06-11T16:59:39+00:00Added an answer on June 11, 2026 at 4:59 pm

    You would normally do your container registration at your composition root, which would be typically at bootstrap and that code would be contained in your web or desktop assembly, not your assembly that contains your business/domain objects.

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

Sidebar

Related Questions

My application consists of data downloaded from an XML file. data contains short text
I am developing a quiz application which consists of a question and three options
I am working on localization for a asp.net application that consists of several projects.
I am currently developing a .NET application, which consists of 20 projects. Some of
I've developed an osgi application (no rcp) using eclipse. It consists of several Plugin-Projects-Bundles
I have a WPF application that consists of multiple projects that have forms, classes,
My application consists of of custom listview which has couple of textview's and a
My application consists of a UIImageView inside a UIScrollView , and I display a
An application consists of one or more processes. A process, in the simplest terms,
My application consists of two parts: A Windows Service running under the LocalSystem account

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.