markrendle / Simple.Data

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

OrderBy ignores column named parameter in favour of fluid style name. #271

Closed hmobius closed 11 years ago

hmobius commented 11 years ago

If I call OrderBy_valid_column_name(xyz) where xyz is any value, be it a valid or invalid column name, xyz is completely ignored and the result data is ordered by valid_column_name. I'd expect an ArgumentException to be called in this case. For example when calling:

db.Albums.All().OrderByGenreId(1);
db.Albums.All().OrderByGenreId(db.Albums.Title);