I have a ASP.NET site which consumes services from a single class library project (RootServices
) This library calls 2 (or more) SubService class library projects (e.g., PeopleService
& OrderingService
) these service projects have a one to one mapping to a entity framework projects (e.g., PeopleDBEntities
& OrdersDBEntities
) which make calls to there respective DBs.
Ok this is great as we have single responsibilities for each part and we get the benefits of microservices with out the horrendous waste of making calls across the network (latency in nanoseconds not milliseconds!)
However as we add new people to the team they want to call the OrdersDBEntities
from the PeopleService
and the PersonEntities
from the RootServices
No circular dependencies, but still not what I designed. **Gah my beautiful architecture is being turned into a pile of spaghetti! **
Is there an easy way of forcing that a given project may only be referenced by other certain projects?