Hi - just a feature suggestion for others and not sure if possible for other providers, but having the following EndsWith Convention built-in would have saved me a bit of time.
autoQuery.EndsWithConventions.Add("IsNull", new QueryDbFieldAttribute {
Template = "IIF ({Field} IS NULL,'true','false') = {Value}", ValueFormat = "{0}"
});