When you say you donβt want to βhard code SQLβ, is it a SQL problem or hardcoding? Since SQL is fabulous, expressive, powerful and, in any case, the language of relational databases, I am sure that this is hard coding that listens to you. So QueryFirst. Your sql coexists in your application with the same status as the host language: syntax validated as you type, directly executed in place. Each time you save your .sql, QueryFirst will regenerate its C # shell: repo, its interface and POCO for the results. Your queries are constantly tested from dev to deployment. Theoretically, there are no runtime errors from accessing data.
Download here
A small blog for discussion and comments here
Disclaimer: I wrote QueryFirst
bbsimonbb
source share