Click here to Skip to main content
15,889,216 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Questions Regarding OOPs Pin
Richard MacCutchan27-Aug-13 4:51
mveRichard MacCutchan27-Aug-13 4:51 
GeneralRe: Questions Regarding OOPs Pin
BotCar27-Aug-13 21:19
BotCar27-Aug-13 21:19 
GeneralRe: Questions Regarding OOPs Pin
Richard MacCutchan27-Aug-13 21:50
mveRichard MacCutchan27-Aug-13 21:50 
GeneralRe: Questions Regarding OOPs Pin
BotCar27-Aug-13 21:58
BotCar27-Aug-13 21:58 
GeneralRe: Questions Regarding OOPs Pin
Albert Holguin8-Oct-13 7:46
professionalAlbert Holguin8-Oct-13 7:46 
Questionwebservices architectures Pin
topcatalpha26-Aug-13 3:53
topcatalpha26-Aug-13 3:53 
AnswerRe: webservices architectures Pin
Richard MacCutchan26-Aug-13 4:11
mveRichard MacCutchan26-Aug-13 4:11 
QuestionDon't want the DAL layer to be referenced in the UI or UT layer Pin
benndonwload23-Aug-13 5:01
benndonwload23-Aug-13 5:01 
Hi,

I am trying to have my project divided in layers. Here is how it's set so far:

- DAL layer: communicate with the database
- Services Layer: cummunicate with the DAL and the UI/UT layers
- UI Layer: is an MVC4 web application
- UT layer: Unit Test project
- Common Layer: has some common classes sheared accross the solution, it has actually the Enum classes.

In my DAL layer, I have:
C#
RepositoryBase<T>: IDisposable where T: class, new()
this class has CRUD methods and some others like GetAll(), Filter and so on.
C#
public IEnumerable<T> GetAll() 


In my Services layer, which has a reference to the DAL layer, I have, lets say:
C#
ProductManager: RepositoryBase<CT_Product>. 

CT_Product is an EF5 entity
It override the DAL GetAll() method and return an IList of Product, Product is a class in my Model.
C#
public IList<Product> GetAll()


Here is my problem: in my UI layer or even the UT layer I don't want to add reference of my DAL layer, I want to only deel with Services layer but when I try to call the Services GetAll() methode I am getting an error which I resolve by adding the DAL layer and I don't like that.Mad | :mad:

Can someone help by pointing me on how to get that?
Benn
AnswerRe: Don't want the DAL layer to be referenced in the UI or UT layer Pin
benndonwload23-Aug-13 11:27
benndonwload23-Aug-13 11:27 
AnswerRe: Don't want the DAL layer to be referenced in the UI or UT layer Pin
jschell23-Aug-13 13:30
jschell23-Aug-13 13:30 
GeneralRe: Don't want the DAL layer to be referenced in the UI or UT layer Pin
benndonwload23-Aug-13 18:06
benndonwload23-Aug-13 18:06 
GeneralRe: Don't want the DAL layer to be referenced in the UI or UT layer Pin
jschell26-Aug-13 8:55
jschell26-Aug-13 8:55 
QuestionMoving Data within an Application Pin
AeroClassics12-Aug-13 12:05
professionalAeroClassics12-Aug-13 12:05 
AnswerRe: Moving Data within an Application Pin
jschell13-Aug-13 8:55
jschell13-Aug-13 8:55 
GeneralRe: Moving Data within an Application Pin
AeroClassics14-Aug-13 5:12
professionalAeroClassics14-Aug-13 5:12 
GeneralRe: Moving Data within an Application Pin
jschell15-Aug-13 8:55
jschell15-Aug-13 8:55 
AnswerRe: Moving Data within an Application Pin
Eddy Vluggen14-Aug-13 6:03
professionalEddy Vluggen14-Aug-13 6:03 
AnswerRe: Moving Data within an Application Pin
ExcellentOrg21-Aug-13 22:04
ExcellentOrg21-Aug-13 22:04 
QuestionHow to store huge binary files without Database Pin
Mercurius846-Aug-13 21:50
Mercurius846-Aug-13 21:50 
AnswerRe: How to store huge binary files without Database Pin
Pete O'Hanlon6-Aug-13 22:09
mvePete O'Hanlon6-Aug-13 22:09 
GeneralRe: How to store huge binary files without Database Pin
Mercurius846-Aug-13 22:22
Mercurius846-Aug-13 22:22 
AnswerRe: How to store huge binary files without Database Pin
jschell7-Aug-13 8:22
jschell7-Aug-13 8:22 
GeneralRe: How to store huge binary files without Database Pin
Mercurius847-Aug-13 17:43
Mercurius847-Aug-13 17:43 
GeneralRe: How to store huge binary files without Database Pin
Richard MacCutchan7-Aug-13 20:50
mveRichard MacCutchan7-Aug-13 20:50 
GeneralRe: How to store huge binary files without Database Pin
Mercurius847-Aug-13 22:11
Mercurius847-Aug-13 22:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.