Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running With without a base command should throw NullReferenceException #282

Open
hmobius opened this issue Apr 22, 2013 · 0 comments
Open
Milestone

Comments

@hmobius
Copy link

hmobius commented Apr 22, 2013

If I use a With 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.WithArtists();

is equivalent to

db.Albums.All().WithArtists();

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant