Customize CommandText without using Entity

Posts   
 
    
User001
User
Posts: 13
Joined: 19-Nov-2024
# Posted on: 16-Dec-2025 10:18:59   

Hi everyone, I wanted to build a custom query builder. I can use do this is by using SetCommandText with RetrievalQuery. However, using RetrievalQuery, the SQLCommand is fixed to a certain database to communicate. It is not flexible when changing other database.

Though, Stored Procedure can be used to fetch data in which it will not call any Entity or Entity Fields but returned as a DataTable or other types instead.But is there other ways to achieve this? How do one can make a custom query builder without using Entity. It is similar to SetCommandText with RetrievalQuery but does it have any functions to use so that it is flexible (can communicate with different database)? Thank you.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 40016
Joined: 17-Aug-2003
# Posted on: 16-Dec-2025 16:38:41   

1) why would you want this
2) there's a PlainSQL API you can use to execute queries, did you try that?

Frans Bouma | Lead developer LLBLGen Pro