
Hello everyone
Currently I have the following reference structure:
DSFinalProject have reference of "DAL" project and "DataStructure" project.
DataStructure have reference of the DAL project as well…
Now I want that DSFinalProject won’t have reference to the DAL layer but will be able to use interfaces from that class.
Is there any way to "tunnel" the interfaces that are in the DAL project to DSFinalProject without actually making references between them?
Maybe using the DataStructure project? Or anything else?
Thanks in advance for any help 🙂
The easiest way is to put them in
DataStructure, which isn’t too bad since anything that references the interfaces will need to referenceDataStructureas well.My vote would be to put them there until you run into a scenario when you need to have the interfaces in a separate assembly.