Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Running Having without a base command should throw NullReferenceException #285

Open
hmobius opened this Issue · 0 comments

1 participant

Dan Maharry
Dan Maharry

If I use a Having statement without a base query command (FindAllBy, Get etc), Simple.Data runs the command successfully as if All() had been included. For example

 db.Albums.Having(db.Albums.Price.Avg() == 8.99);

is equivalent to

 db.Albums.All().Having(db.Albums.Price.Avg() == 8.99)

Shouldn't this throw a NullReferenceException just as OrderBy does if there is no base command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.