This is my first ever post on any forum, so excuse my etiquette.
Im using SubSonic 3.0.0.4 and was trying to concat a Fluent Query using ActiveRecord, I want to be able to use the WhereExpression method of SqlQuery to start adding a list of ‘OR’ statements with brackets round, to exclude the list from other constraints E.g.
var qry =
db.Select.From<DocumentHeader>();
qry.WhereExpression(DocumentHeadersTable.InvoiceNoColumn).Like(myList.Items[0]);
for (Int32 i = 1, n = myList.Items.Count; i < n; i++) {
qry.Or(DocumentHeadersTable.InvoiceNoColumn).Like(myList.Items[i]);
}
qry.CloseExpression();
There is more to it than this but this is a rough example. Searching on the web and looking at the Fluent Query page of SubSonic it suggests that the method WhereExpression does exist, but looking at the Intellisense and then in the source code downloaded from the GitHub, I could only find a Property not a Method. I have managed to do a workaround for the above problem, but the WhereExpression would be useful.
So after all that my question is, has this method been removed? or its usage changed? Or most likely Im being stupid and looking in the wrong place?
Thanks in advance.
Lee
Apparently, the WhereExpression got another implementation due to a massive addition of LINQ support in the version 3.0, so just use the
Wheremethod instead.