I have 3 projects: UI, Core and Host, windows forms, class library and windows forms respectively.
UI is my startup project but the setting for Start external program is Host.exe.
UI has a reference to the Core project which is my data-access layer.
Host is the one loading the configurations.
Basically, when I run the application, the first thing that is executed is the Main function of the Host project.
Now, within the Main function, I'd like to get data from the database but Host has no reference to Core.
How do I get data from the database when my Main function is executed?
Currently, what I can think of is execute something (batch file or tt) on my Main function and write to a file. From the file, I will get my data. Can you suggest other ways to do this?