talira

SqlSugar

.NET ORM for many databases, including China's domestic ones such as Dameng and KingbaseES

open sourceMITfree

SqlSugar is an open source ORM for .NET (.NET Framework, .NET Core 3.1 and .NET 5 to 10), maintained by the Fructose Big Data Technology team. It aims to be simple out of the box: table creation, indexes and CRUD without writing SQL, join and include queries, inserts, updates and deletes without entity classes or from JSON, cross-database queries, and multi-tenant setups with tenant databases, sharded tables and data isolation. It supports MySQL, SQL Server, SQLite, Oracle, PostgreSQL, MongoDB, ClickHouse, DuckDB, SAP HANA, OceanBase, TiDB, QuestDB, TDengine and China's domestic databases such as Dameng, KingbaseES, Huawei GaussDB, Shentong, Highgo and GBase.

Problems it solves

  • an ORM for .NET that works with Dameng or KingbaseES databases
  • query several databases from one .NET ORM
  • split a .NET app's data into a database per tenant

Features

  • create tables and indexes and run CRUD without writing SQL
  • join and include queries
  • insert, update and delete without entity classes, or from JSON
  • cross-database queries
  • multi-tenant support: tenant databases, sharded tables and data isolation
  • repository, unit of work, DbContext and AOP

Alternatives

The same job

These do what SqlSugar does.

  1. FreeSql .NET ORM with CodeFirst, DbFirst and support for many databases, including AOT builds
  2. SQLite-net A small SQLite client and ORM for .NET
  3. Entity Framework Core A lightweight, extensible, open source and cross-platform version of Entity Framework
  4. Dapper A simple, fast object mapper for .NET
  5. NHibernate The object-relational mapper for .NET
  6. Entity Framework 6 A tried and tested object-relational mapper for .NET

Compare SqlSugar with the top 3