Question

We gonna deal with a application which can be consumed from various devices .

I what the flow diagram from which layer to which layer like that ..

I tried one if i am wrong correct me and any clarity comment i will try to be elobarative

VIEW <---> Controller <---> Model (Domain objects ) <----> BLL <----> WEB-API <---> DAL (EF 6.0 ) <----> MDS(Services on master data)

I am not sure i am right or wrong any corrections are appreciated . I am feeling confused where to keep BLL ? ? can i consume mds in entity framework which is inside DAL else need to create separate layer ? i am confused

Share your thought's :) Ty

Was it helpful?

Solution

I think the Web-API component is in the wrong place - it's a UI element generating/processing UI requests? Should it not be in the same group at the view?

The Model and the BLL would have a close relationship. If all devices were accessing the MVC front end you could possibly opt for a traditional MVC model? In older/simpler MVC projects the models were sometimes just EF objects - but abstraction is recommended. Typically Model classes would be composed of EF objects, and the BLL would be functions included in the model class.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top