Are there any libraries for .Net for building sql statements?
(BTW I know about ADO.NET SqlCommand, SqlParameter classes already)
I'm currently developing a library to do this but am now wondering if there is already something out there which might be better.
Edit:
At this point I'm only interested in returning a DataTable object as I'm developing a reporting feature, hence why I'm not too interested in LINQ (please correct me on this if you think I am misguided).
My main aim is to enable users to select field names for a report from a CheckBoxList and to be able to add/remove filtering expressions (i.e. edit the WHERE clause). Adding fields could mean including sub-selects, not just including a field name in the select clause.