locked
Keeping the DAL seperated from the UI in MVC RRS feed

  • Question

  • User-963208184 posted
    HI All,

    I have a Repository Layer using Entity Framework and this stores all my data object structures. I then have a service layer that uses the repository. i.e. I may have a User object in the repository and I request a User object perhaps based on username password in my service Layer. My controller that Makes the request to the service layer wants a User object but I dont want to give a direct reference to the data layer from my controller. I only want my service layer to know about the DAL. How can I best approach this such that I can still give the Controller the Structure it needs to populate the view.
    Tuesday, February 19, 2013 7:42 AM

All replies

  • User-972560101 posted

    Hi you have create the seperate project for table schema

    Tuesday, February 19, 2013 7:48 AM
  • User-972560101 posted

    Hi you have create the seperate project for table schema

    Tuesday, February 19, 2013 7:48 AM
  • User-963208184 posted

    I'm also using the DBContext Poco Generator which is also in the DAL

    Tuesday, February 19, 2013 8:17 AM