This is pulled from a stackoverflow link
"The DAL should have no knowledge at all about the Business Logic Layer. It should, in theory, be able to be called from any client. For example, what if you wanted to seperate the DAL from the application and deploy it as a seperate service exposing itself via WCF?"
That is what I want to do with my dal but I currently have a repository that looks like this..
public class YogaSpaceEventRepository : IYogaSpaceEventRepository
{
public IQueryable<YogaSpaceEvent> FindEvents(DateTime start, DateTime end)
{
// Retrieve Data from Database
}
}
The 'YogaSpaceEvent' entity is being referenced from the business logic layer. What pattern/architecture do I use to remove this to achieve decoupling so that I can use the data access layer by another service (ex. WCF) without needing to reference anything from the business layer?