LINQ to DB VS TypeORM

Compare LINQ to DB vs TypeORM and see what are their differences.

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. (by typeorm)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
LINQ to DB TypeORM
20 156
2,859 33,287
0.9% 0.9%
8.8 9.0
1 day ago 3 days ago
C# TypeScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

LINQ to DB

Posts with mentions or reviews of LINQ to DB. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-02.
  • Upserting complex data models from an API into EF Core entities
    3 projects | /r/dotnet | 2 Jun 2023
  • LiteDB: A .NET embedded NoSQL database
    7 projects | news.ycombinator.com | 8 Nov 2022
    Before checking this out, people might want to take a look through the issues and pull requests of which there are 500+ and 50+ respectively [1]. I was really optimistic about this project and it was headed in a great direction, but it's not in a production ready state, and it seems that the main guy behind it has decided to move onto other things. It's been about a year since there was any significant activity.

    I just mention this because a lot of these little issues might only become more apparent after integrating the db into your project and so it can be a bit annoying. I ended up swapping to Linq2DB [1]. It's something, more or less, similar offering an ORM/LINQ type system as well as the ability to also use direct SQL if desired. But the neat thing is that it also uses a standardized API for the LINQ query language, so you can do things like swap from SQLite to PostgreSQL in one* line of code, so long as you're not using any provider specific extensions.

    [1] - https://github.com/mbdavid/LiteDB

    [2] - https://github.com/linq2db/linq2db

  • Flyweight: An ORM for SQLite
    9 projects | news.ycombinator.com | 29 Sep 2022
    I had a positive experience with Linq2db? https://github.com/linq2db/linq2db

    I mention because I had something of the opposite experience with it. It not only ended up yielding the correct queries, but I saw a significant increase in performance. And the neat thing about it, beyond ORM and linq-to-sql, is a common interface amongst providers - so you can do things like swap from SQLite to Postgres with 1 line* of code, so long as you're not using provider specific extensions.

  • .NET 6 - ORM vs Stored Procedures - Azure Functions + SQL Databases
    3 projects | /r/dotnet | 2 Sep 2022
    Temporary tables are covered by linq2db. But better to show Stored Proc maybe your final query just needs several CTE which also supported by linq2db.
  • LINQ to SQL
    1 project | /r/Unity3D | 20 Aug 2022
    check this out as an alternative... https://github.com/linq2db/linq2db
  • Expression trees for LINQ
    2 projects | /r/dotnet | 13 Aug 2022
    My learning path was supporting linq2db, not short way. StackOverflow was original source to find something like, how to do if operator in Expression Tree, how to throw exception in Expression Tree, how to build dynamic filter, ect.
  • Dapper is it worth using now with the improvements in EF in dotnet 6?
    3 projects | /r/dotnet | 25 Jun 2022
    Checkout linq2db No need for Dapper or EF with this library. I wouldn't want to miss it.
  • What is the best PostgreSQL ORM tool for use in a .NET Framework 4.7 application?
    3 projects | /r/dotnet | 15 Jun 2022
  • SchemaTypist: Entity generator for Dapper and SqlKata
    2 projects | /r/dotnet | 18 Mar 2022
    Why not linq2db? Faster than Dapper and has LINQ support.
  • EF Core is good for most things.
    4 projects | /r/dotnet | 31 Jan 2022
    Probably you can understand why linq2db was born 15 years ago

TypeORM

Posts with mentions or reviews of TypeORM. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-19.
  • NodeJS Security Best Practices
    11 projects | dev.to | 19 Feb 2024
    If you use Sequalize, TypeORM or for MongoDB, we have Mongoose these types of ORM tools, then you are safe by default because these help us against the SQL query injection attacks by default.
  • [DDD] Tactical Design Patterns Part 3: Presentation/Infrastructure Layer
    4 projects | dev.to | 16 Jan 2024
    We decided to use MySQL for a database. and TypeOrm for ORM. The ER diagram is provided below. For example, the task_assignments table holds information about user assignments to tasks. While in DDD, there is a pattern to design denormalized tables that reflect the structure of domain objects more directly, but this time, a more conventional table design was chosen. TypeOrm models:
  • Optimizing SQL Queries by 23x!!!
    1 project | dev.to | 15 Jan 2024
  • SQLSync – Stop Building Databases
    7 projects | news.ycombinator.com | 1 Dec 2023
    How does this compare to using directly an ORM lib that supports browser like TypeORM [0] via SQL.js [1]?

    [0] https://typeorm.io/

  • Deno Cron
    15 projects | news.ycombinator.com | 29 Nov 2023
    * Patch a third-party library that was setting an HTTP header to `null`. NodeJS handles this case just fine, but Deno throws an error [2].

    After all of that work, I finally was able to use Deno in my project. It was really cool! Unfortunately, both VS Code and IntelliJ with Deno are essentially unusable [3]. Or, at least, unacceptably slow compared to what I had with NodeJS.

    [0]: https://stackoverflow.com/a/66073607

    [1]: https://github.com/typeorm/typeorm/issues/6123#issuecomment-...

    [2]: https://github.com/Sansossio/twisted/issues/97

    [3]: https://github.com/denoland/vscode_deno/issues/895

  • TypeORM - remove children with orphanedRowAction
    3 projects | dev.to | 6 Nov 2023
    TypeORM is a very convenient ORM for JS apps. We use it with NestJS and running it on NodeJS.
  • Authentication part 3 using NestJS and Postgres database neon.tech
    4 projects | dev.to | 25 Oct 2023
    We are going to start using TypeORM as an ORM to help us interact with Postgres, but we also have an example of using Prisma in the future and everything that we have to adapt to switch the ORMs if necessary. At the end we are implementing neon.tech as a production database, right? 😉
  • From Good to Great: Scaling Applications with TypeORM Optimization
    4 projects | dev.to | 16 Oct 2023
    TypeORM is a popular Object-Relational Mapping (ORM) library for Node.js. It provides a high-level abstraction over relational databases, making it easy to perform CRUD (Create, Read, Update, Delete) operations.
  • Top 6 ORMs for Modern Node.js App Development
    7 projects | dev.to | 11 Oct 2023
    TypeORM places its focus on TypeScript and JavaScript (ES7+) development. It offers compatibility with various database systems, including MySQL, PostgreSQL, SQLite, and MongoDB. What sets TypeORM apart is its robust integration with TypeScript. It provides a user-friendly experience with a convenient decorator-based syntax for defining entities and relationships. Additionally, TypeORM supports the repository pattern and enables eager loading, enhancing its versatility for developers.
  • Deep Dive into Google Cloud SQL Connector for Node.js
    4 projects | dev.to | 9 Oct 2023
    ᴬ typeorm officially supports mssql@v9, but the support for the custom stream builder was added in mssql@v10. Since mssql is a peer dependency of typeorm, you can force override it and use the Cloud SQL Connector with typeorm. There is an open PR to add support for mssql@v10 in typeorm.

What are some alternatives?

When comparing LINQ to DB and TypeORM you can also consider the following projects:

Dapper - Dapper - a simple object mapper for .Net [Moved to: https://github.com/DapperLib/Dapper]

Sequelize - Feature-rich ORM for modern Node.js and TypeScript, it supports PostgreSQL (with JSON and JSONB support), MySQL, MariaDB, SQLite, MS SQL Server, Snowflake, Oracle DB (v6), DB2 and DB2 for IBM i.

Entity Framework - EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

Mongoose - MongoDB object modeling designed to work in an asynchronous environment.

MongoDB Repository pattern implementation

Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB

RepoDb - A hybrid ORM library for .NET.

Objection.js - An SQL-friendly ORM for Node.js

NHibernate - NHibernate Object Relational Mapper

MikroORM - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, MS SQL Server, PostgreSQL and SQLite/libSQL databases.

PetaPoco - Official PetaPoco, A tiny ORM-ish thing for your POCO's