DataQI.NET: A Framework for Specifying Query Criteria Using the Repository Pattern
Resumo
During the construction of applications that require integration with databases, developers often dedicate a considerable amount of time writing the data access layer. Although there are some tools that aim at improving that process, it still demands a great amount of (usually default) code, which is error-prone, takes effort and time from the developer, and reduces the code reuse potential. This paper presents the DataQI.NET, a framework that encapsulates the complexity of those tools and makes possible the definition of customized queries through method signatures on interfaces that follow the Repository Pattern, allowing the developer to focus more on the business rules implementation. A comparative study is provided considering the implementation with and without the framework, demonstrating that, by using DataQI.NET, we obtain more homogeneous and standardized query methods that communicate, supporting code reuse and significant reduction on the lines of code and implementation time.
Palavras-chave:
Query Methods, Repository Pattern, Data Persistence, Query Specification
Publicado
21/10/2020
Como Citar
CARNEIRO, Carlos Henrique Gouveia; MAIA, Paulo Henrique M..
DataQI.NET: A Framework for Specifying Query Criteria Using the Repository Pattern. In: SIMPÓSIO BRASILEIRO DE ENGENHARIA DE SOFTWARE (SBES), 34. , 2020, Natal.
Anais [...].
Porto Alegre: Sociedade Brasileira de Computação,
2020
.