I have a situation where I have functionality that I want to use across more than 1 application. In particular, I have a Repository
taking the form of a C# class library containing things like a EF .edmx, repository, and UnitOfWork that are generic enough to use across applications.
I'm frustrated that I can't see the picture more clearly because I should understand clearly the differences; and I do to a point. However I think I can't see through to the ramifications of each choice and the overall differences.
I have read this link: How do you share code between projects/solutions in Visual Studio? and it offers some good advice, but both suggestions seem to hold water. I want to understand better the downstream impacts of each and understand which is the proper selection for my need.
I believe with linking files I would create another new Repository
project in Application-2, but use the linked files for what comprises that new layer.
I believe with adding the Repository
from Application-1 as a reference to Application-2 will work, but I'm not sure what the impact of changing code will be.
I basically need to know which method will yield the correct result for my need to share the repository layer among 1..n applications?