Tagged: Visual Studio Developer Tools
The other day I mentioned LINQ To Twitter, which is a LINQ Provider that allows you to implement the Twitter API in a more natural manner in your .NET Applications.
Today while doing a bit of surfing I noticed LINQ To Bing, which is another LINQ Provider that allows you to access Bing via the developer API's in order to incorporate Bing Search Results in you ASP.NET, ASP.NET MVC, Winform, WPF and other .NET Applications.
I haven't played with it yet, but LINQ To Bing may be a good example for learning how to create a LINQ Provider. Per the website:
"Bing has a new search API that provides you the option of using REST interface (XML or JSON) or a SOAP interface. My LINQ provider provides a more natural LINQ syntax that you can now use without having to worry about protocol details, web requests, URIs etc. Under the covers the LINQ functionality builds on the REST/XML API.
Here is an example of a basic search for pages using BLinq:
BingContext bing = new BingContext(appKey);
IQueryable<PageSearchResult> pagesQuery =
from p in bing.Pages
where p.Query == "nikhil"
select p;
foreach (PageSearchResult page in pagesQuery) {
// Write out page members (title, uri, description, display URL and date)
}"
Learn more here.
David Hayden