LINQ-to-Twitter, Another LINQ Provider
Mehfuz Hossain, a Microsoft MVP, has created a LINQ-to-Twitter provider. This is yet another example demonstrating that LINQ is not a framework to access just data in a database but it can be used with all sorts of objects, including tweets.
LINQ-to-Twitter takes the Yedda returned XML and converts it into queriable objects using LINQExtender, a free library which provides basic functionality for creating LINQ providers. There are two steps involved in creating a provider using LINQExtender, according to Hossain:
First you have to define a query object by implementing IQueryObject and then you have made a Query<T> successor and override few methods.
A query example looks like this:
TwitterContext context = new TwitterConext(); var query = from twit in context where twit.Username == "myuser" && twit.Password == "mypass" && twit.Timeline == Timeline.Friends orderby twit.LastUpdated descending select twit;
York Xyander, Bodo Junglas Jul 31, 2015