Description
LINQ to Twitter is an open source 3rd party LINQ Provider (Twitter Library) for the Twitter micro-blogging service. It uses standard LINQ syntax for queries and includes method calls for changes via the Twitter API.
LINQ to Twitter alternatives and similar packages
Based on the "ORM" category.
Alternatively, view LINQ to Twitter alternatives based on common mentions on social networks and blogs.
-
TypeORM
Data-Mapper ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL databases. Works in Node.js and Browser. -
Entity Framework
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects -
FreeSql
FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And MsAccess. -
Fluent NHibernate
Fluent, XML-less, compile safe, automated, convention-based mappings for NHibernate. -
LINQ to DB
The fastest LINQ database access library offering a simple, light, fast, and type-safe layer between your POCO objects and your database. -
Dapper Extensions
Small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs -
Entity Framework 6
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects -
NPoco
Simple microORM that maps the results of a query onto a POCO object. Based on Schotime's branch of PetaPoco -
SmartSql
SmartSql = MyBatis + Cache(Memory | Redis)+ ZooKeeper + R / W Splitting + Dynamic Repository .... -
MicroOrm.Dapper.Repositories
Repository for CRUD operations -
SQLProvider
A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides. -
MongoDB Repository pattern implementation
Repository abstraction layer on top of Official MongoDB C# driver -
DbExtensions
Data-access framework with a strong focus on query composition, granularity and code aesthetics. -
JsonFlatFileDataStore
Simple JSON flat file data store with support for typed and dynamic data. -
NReco.Data
Lightweight provider-independent DAL for .NET Core: abstract query, SQL command builder, CRUD operations, object mapping.. -
MongoFramework
An "Entity Framework"-like interface for MongoDB -
MicroLite ORM
MicroLite ORM is a micro Object Relational Mapper for the .NET framework. It is designed to be easy to use, extensible and testable. -
Linq.Expression.Optimizer
System.Linq.Expression expressions optimizer. -
EntityFramework.DatabaseMigrator
EntityFramework.DatabaseMigrator is a WinForms utility to help manage Entity Framework 6.0+ migrations. -
Excel2SqlServer
Library for importing Excel spreadsheets into SQL Server tables -
LLBLGen Pro
Entity Modeling solution for Entity Framework, NHibernate, Linq to SQL and its own ORM framework: LLBLGen Pro Runtime Framework. [$][Free Lite version] -
Entity Framework Core
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of LINQ to Twitter or a related project?
README
LINQ to Twitter is an open source 3rd party LINQ Provider (Twitter Library) for the Twitter micro-blogging service. It uses standard LINQ syntax for queries and includes method calls for changes via the Twitter API.
Example
The following query returns search results where people are tweeting about LINQ to Twitter:
var twitterCtx = new TwitterContext(...);
var searchResponse =
await
(from search in twitterCtx.Search
where search.Type == SearchType.Search &&
search.Query == "\"LINQ to Twitter\""
select search)
.SingleOrDefaultAsync();
if (searchResponse != null && searchResponse.Statuses != null)
searchResponse.Statuses.ForEach(tweet =>
Console.WriteLine(
"User: {0}, Tweet: {1}",
tweet.User.ScreenNameResponse,
tweet.Text));
From a coding experience perspective, the TwitterContext
type is analogous to the Entity Framework DBContext
. You use the TwitterContext
instance, twitterCtx
, to access IQueryable<T>
tweet categories. In the example above, the Search
will give you the ability to search Twitter for tweets meeting some criteria.
Note: The ellipses in the TwitterContext parameters indicates that you need to provide an authorizer with credentials, which is required. You can visit Securing Your Applications for documentation on authorizers and visit the Download page for working examples.
Each query category has a Type
property for the type of tweets you want to get back. For example, Status
tweets can be made for Home
, Mentions
, or User
timelines. Each query category also has an XxxType
enum to help you figure out what is available. The example above uses SearchType.Search
to perform searches. Another example would be Status
queries which might have StatusType.Home
as its Type
. In the case of Search
queries, Search
is the only option, but the Type
idiom is consistent accross all query categories.
Just like other LINQ providers, you get an IQueryable<T>
back from the query. You can see how to materialize the query by invoking the SingleOrDefaultAsync
operator. For Search
results, you receive one Search
entity that contains information about the Search
query and the Search
entity contains a Statuses
property that is a collection of Status
entities. On other queries, you would materialize the query with ToListAsync
for multiple results. Just like other LINQ providers, LINQ to Twitter does deferred execution, so operators such as ToListAsync
and SingleOrDefaultAsync
or statements such as for
and foreach
loops will cause the query to execute and make the actual call to Twitter.
The latest version of LINQ to Twitter supports async. You can see this where the code above await's
the query, using the SingleOrDefaultAsync
operator. Commands are async also. e.g. await TweetAsync("Hello from LINQ to Twitter")
.
For more details on how LINQ to Twitter works, you can visit Making API Calls for API specific examples. The downloadable source code also contains copious examples in the projects. Just look in the Samples folder.
NuGet
In addition to being able to download from this site, you can also automatically install LINQ to Twitter into your Visual Studio projects via NuGet;
Available Feature Set
See Making API Calls.
For more info:
- follow @JoeMayo for releases and related blog posts.
- follow @Linq2Twitr for more detailed project information.