Let's say we have an application with a DAL, business layer, and presentation layer, we do dependency Inversion, and we place the database repository interfaces at the business layer.
At the data layer we use EF for database access. Who owns the entities? The business layer or the DAL?
I mean at the business layer we should already know about the entities, however the entities are generated by the data access layer. I think lower level modules should not know about higher level modules. I am really confused.