Where to store a function that involves two entities?
Advertisements I have two tables in my database. Companies and Sites. Each Company has many Sites. The Sites table has has a foreign key of CompanyID. I have a data layer class for each entity, one for the company, and one for the site. I need to get the CompanyID by the SiteID and so… Read More Where to store a function that involves two entities?