Using ASP.NET and C#:
I have multiple web projects, on a server, inside a network, that all need to reference the same classes. Some of these methods will be database routines and need to be secure (e.g. record insert methods, whatever). What is the best way to go about this?
Web services seemed to accomplish this with code in a central place, but they are not secure for data operations and add bloat from what I understand, and are also more for use with disparate systems across the cloud, not so much for internal compatible .NET applications.
Class libraries seem to be a possible answer and I see simple tutorials on this on the web for console apps, but not for web applications (so far, I only did a cursory search). If I go this route, does each web application reference one piece of code in one place, or do they all make a copy when the library is referenced? If the latter, do I have to go update every single application every time I add a new class, method, etc or change an existing one?
Many thanks for the assistance.