We have multiple projects where we do database queries in all the projects. Here, we do trigger the same queries from multiple projects (Query and processing of the query results, Not just about queries, any common code across the projects).
Now, I want to keep common code in a separate common library and register this common library in all the required main projects. Then from main projects just invoke the common library's util functions.
What is best approach to design common project? I though of Defining util classes in the common library and invoke these methods inside main projects by sending the necessary data as a parameter. But I read using utility class may violate OOP.
So, can someone suggest some design pattern/approach to achieve the same?
Aucun commentaire:
Enregistrer un commentaire