Currently setting up a new Web Api using C# and dotnet Core. And i notice some strange behaviour when referencing other projects.
My solutions is pretty straight forward: DataAccess, BusinessLogic, WebApi
The WebApi project has a reference to the BusinessLogic project and the BusinessLogic project has a reference to the DataAccess project.
Now with previous versions of .NET my WebApi project would not have access to anything from the DataAccess project but in my current setup i can access anything form the DataAccess project in my WebApi project without having a reference to it.
Could anyone please explain this behaviour and possibly how to prevent it?