markrendle / Simple.Data

A light-weight, dynamic data access component for C# 4.0
MIT License
1.33k stars 303 forks source link

With ignores named parameter in favour of fluid style table name #284

Closed hmobius closed 11 years ago

hmobius commented 11 years ago

If I call WithTableName(xyz) where xyz is anything, xyz is ignored and the query sorted.

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

In both calls, the Artists table is joined onto the Albums table and the results returned.I would expect an ArgumentException to be thrown instead.