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.
-
Dapper
Dapper - a simple object mapper for .Net [Moved to: https://github.com/DapperLib/Dapper] -
TypeORM
ORM for TypeScript and JavaScript. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, SAP Hana, WebSQL databases. Works in NodeJS, Browser, Ionic, Cordova and Electron platforms. -
Entity Framework
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations. -
SqlSugar
.Net ORM Fastest ORM Simple Easy Sqlite orm Oracle ORM Mysql Orm postgresql ORm SqlServer oRm 达梦 ORM 人大金仓 ORM 神通ORM C# ORM , C# ORM .NET ORM NET5 ORM .NET6 ORM ClickHouse orm QuestDb -
FreeSql
🦄 .NET orm, C# orm, VB.NET orm, Mysql orm, Postgresql orm, SqlServer orm, Oracle orm, Sqlite orm, Firebird orm, 达梦 orm, 人大金仓 orm, 神通 orm, 翰高 orm, 南大通用 orm, 虚谷 orm, 国产 orm, Clickhouse orm, QuestDB orm, MsAccess orm. -
EFCore.BulkExtensions
Entity Framework EF Core efcore Bulk Batch Extensions with BulkCopy in .Net for Insert Update Delete Read (CRUD), Truncate and SaveChanges operations on SQL Server, PostgreSQL, MySQL, SQLite -
PetaPoco
Official PetaPoco, A tiny ORM-ish thing for your POCO's -
ServiceStack.OrmLite
Fast, Simple, Typed ORM for .NET -
Dapper Extensions
Dapper Extensions is a small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs. For more advanced querying scenarios, Dapper Extensions provides a predicate system. The goal of this library is to keep your POCOs pure by not requiring any attributes or base class inheritance. -
Entity Framework 6
This is the codebase for Entity Framework 6 (previously maintained at https://entityframework.codeplex.com). Entity Framework Core is maintained at https://github.com/dotnet/efcore. -
Massive
A small, happy, dynamic MicroORM for .NET that will love you forever. -
LINQKit
LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users. -
NPoco
Simple microORM that maps the results of a query onto a POCO object. Project based on Schotime's branch of PetaPoco -
SmartSql
SmartSql = MyBatis in C# + .NET Core+ Cache(Memory | Redis) + R/W Splitting + PropertyChangedTrack +Dynamic Repository + InvokeSync + Diagnostics -
MicroOrm.Dapper.Repositories
CRUD for Dapper -
SQLProvider
A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides. -
Dapper.FastCRUD
fast & light .NET ORM for strongly typed people -
MongoDB Repository pattern implementation
Repository abstraction layer on top of Official MongoDB C# driver -
MongoDB.Entities
A data access library for MongoDB with an elegant api, LINQ support and built-in entity relationship management -
JsonFlatFileDataStore
Simple JSON flat file data store with support for typed and dynamic data. -
LINQtoCSV
Popular, easy to use library to read and write CSV files. -
MongoFramework
An "Entity Framework"-like interface for MongoDB -
DbExtensions
Data-access framework with a strong focus on query composition, granularity and code aesthetics. -
NReco.Data
Fast DB-independent DAL for .NET Core: abstract queries, SQL commands builder, schema-less data access, POCO mapping (micro-ORM). -
Venflow
A brand new, fast and lightweight ORM, build for PostgreSQL. -
Linq.Expression.Optimizer
System.Linq.Expression expressions optimizer. http://thorium.github.io/Linq.Expression.Optimizer -
KonfDB
Configuration as a Service for multi-tenant, cross-platform applications -
Dashing
Dashing is a simple to use mini ORM built on top of Dapper -
MapDataReader
Super fast mapping DataReader to strongly typed object, Using AOT source generator. -
ObjectStore
.Net Or-Mapper working with dynamically implemented abstract Classes -
MongoRiver.NET
A library for writing .NET MongoDB oplog tailers. -
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
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
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 providers:
var twitterCtx = new TwitterContext(...);
TwitterSearch? searchResponse =
await
(from search in twitterCtx.TwitterSearch
where search.Type == SearchType.RecentSearch &&
search.Query == "LINQ to"
select search)
.SingleOrDefaultAsync();
if (searchResponse?.Tweets != null)
searchResponse.Tweets.ForEach(tweet =>
Console.WriteLine(
$"\nID: {tweet.ID}" +
$"\nTweet: {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 TwitterSearch
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, Tweet
queries can be made for Mentions
, ReverseChronological
, or Tweets
timelines. Each query category also has an XxxType
enum to help you figure out what is available. The example above uses SearchType.RecentSearch
to perform searches on matching tweets that happened within the last two weeks or so. Another example would be Like
queries which might have LikeType.Lookup
as its Type
to get all the users who liked a tweet. The Type
idiom is consistent across 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 TwitterSearch
results, you receive one TwitterSearch
entity that contains metadata about the Search
query and also contains a Tweets
property that is a collection of Tweet
entities. 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.
LINQ to Twitter is asynchronous. 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 LINQ to Twitter v6 APIs 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 projects via NuGet;
Available Feature Set
For more info:
- follow @JoeMayo for releases and related blog posts.
- follow @Linq2Twitr for more detailed project information.