A friend of mine and I work on a small app that makes reads from a database on a remote server. I wrote a quick diagram in Visio which describes the relationships and interactions between components. However, we cannot agree on which direction the arrow from the data access layer to the database should point.
My friend believes it should point from the DB to the access layer, because the DAL cannot exist without the DB, and because the DB is the one supplying the DAL with information.
I believe the arrow should point from the access layer to the database, because the DAL knows the DB exists, and requests info from it, not the other way around.
Which direction is correct, and why?