Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi , I have a 3 projects in my slution one is my web application, 2nd one is Business logic and third one os Dataaccess layer project. I have a class called Base.cs in Business logic project, i need this class even in dataaccess layer proj also but the prob is if i try to add a reference of business logic projec to the dataaccess layer, it is saying the circular references can't be added, i know why it is saying that. I would like to know what is best way of maintaing such classes? Can i create one more proj for the shared classes, this way i can add that reference to both business logic project and data access layer proj?
Posted
Comments
[no name] 14-Nov-12 12:20pm    
What does this class do why you need it in the data access project?

1 solution

Yes you can. You could break up your data access project, business logic project or web project into multiple projects for that matter. It's all about how much you want to re-use, where and when. I think you'll be interested in the following articles (by Robert Martin a.k.a. Uncle Bob): An ABC on packages[^].
They're taken from his website with more articles, like these ones on OOD (including the ones on packages): SOLID[^].

How you should split up and design your packages is up to you.
Hope it helps!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Jun-12 21:04pm    
Interesting set of articles, my 5.
--SA
Sander Rossel 28-Jun-12 6:20am    
Thanks! So that's what SA stands for :)
Sergey Alexandrovich Kryukov 29-Jun-12 18:27pm    
It's just "Sergey Alexandrovich". Both variants are quite appropriate, this is how different to address to me (well, SA mostly in English).
--SA
Sandeep Mewara 28-Jun-12 3:54am    
Good links! 5!
Sander Rossel 28-Jun-12 6:20am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900