Created
January 31, 2012 18:35
-
-
Save teradyne/1712077 to your computer and use it in GitHub Desktop.
Linqpad script : Get all Netflix Movies with rating > 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Linqpad script : Get all Netflix Movies with rating > 4 | |
//Language: C# Expression | |
//Database: http://odata.netflix.com/Catalog/ (Add connection WCF Data Service (OData) Connection) | |
from lang in Languages | |
from title in lang.Titles | |
where lang.Name == "English" && title.Type == "Movie" | |
&& title.AverageRating > 4 | |
orderby title.AverageRating descending | |
select new { name = title.Name, url = title.Url, rating = title.AverageRating} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment