Looking at the object model, I'm not seeing how to build queries programmatically.
For instance, my UI's have "Filtering" options that tailor a string query for a GridView.
Is there a way to do this in a more granular way? Something like:
Code:
//retrieve
IQuery query = this.Session.CreateQuery("from Account");
if(this.txtName.Text != "")
query.Add(String?)Criteria("Name", this.txtName.Text);
if(this.txtNumber.Text != "")
query.Add(String?)Criteria("AccountNumber", this.txtNumber.Text);
if(this.chkIncludeClosed.Checked==false)
query.Add(Boolean?)Criteria("IsClosed",false)