Hi friends
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 cosume mds in entity framework which is inside DAL else need to create separate layer ? i am confused
Share your thought's :) Ty
Loading

SUNIL GUTTAPosted Mar 18, 2014, 2:46 AM
To make service REST-full we are dealing with Webapi and light weighted and also to access current application from anywhere any device like that it-seems .. This is unavoidable . we have to use it but the confusion in where to use and so on ... ...
you can also make BL to responsible for querying data base
I guess i am confused with this also becoz we don't get table structure or what so ever we only get methods from MDS which is a service on database we have to consume . Thinking like consuming in EF which have data context class or something .. still i don't know why to use EF if we are dealing with DB's via services ?
Regards
Jignesh TrivediPosted Mar 18, 2014, 2:16 AM
Hi,
I am not sure why are you include web api here...
other wise it fine.
I think there is no need to create any extra layer for mds. you can keep it in DAL (entity frame work) project.
you can also make BL to responsible for querying data base (i.e BL is responsible to create context and fetching the data but edmx is in DAL project)
hope this will help you.