A powerful, high-performance .NET ORM supporting AOT, multiple databases, and advanced features like CodeFirst/DbFirst.
FreeSql is a powerful, high-performance Object-Relational Mapper (ORM) for .NET that supports Ahead-of-Time (AOT) compilation and a wide variety of databases. It solves the problem of efficient data access in .NET applications by providing advanced features like CodeFirst migrations, DbFirst entity generation, and complex query capabilities while maintaining cross-platform compatibility.
.NET developers building data-intensive applications, especially those requiring support for multiple databases, AOT compilation for performance, or advanced ORM features like read/write separation and global filters.
Developers choose FreeSql for its extensive database support, AOT compatibility, and rich feature set that includes CodeFirst/DbFirst workflows, advanced querying, and scalability options—making it a versatile alternative to Entity Framework and Dapper for complex .NET projects.
.NET aot orm, VB.NET/C# orm, Mysql/PostgreSQL/SqlServer/Oracle orm, Sqlite/Firebird/Clickhouse/DuckDB orm, 达梦/金仓/虚谷/翰高/高斯 orm, 神通 orm, 南大通用 orm, 国产 orm, TDengine orm, QuestDB orm, MsAccess orm.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports over 15 databases including MySQL, PostgreSQL, SQLite, and niche Chinese databases like Dameng and KingbaseES, as listed in the README, ensuring flexibility for diverse projects.
First .NET ORM to offer full Ahead-of-Time compilation, enabling optimized performance for .NET Core, .NET Framework, and Xamarin, which is highlighted in the description and README.
Includes CodeFirst migrations, DbFirst entity generation, navigation properties with lazy loading, and global filters, providing enterprise-grade capabilities for complex data scenarios.
Benchmarks in the README show comparable or better query performance than Dapper in some cases, such as tuple queries, making it efficient for data-intensive applications.
The abundance of features like AOP, repository patterns, and dynamic operations, as documented in the wiki, can overwhelm developers accustomed to simpler ORMs like Dapper.
Primary community support is centered around Chinese QQ groups, and documentation, while available in English, may lack depth compared to Entity Framework Core's extensive resources.
Setting up advanced features such as read/write separation or table splitting requires manual configuration, which adds complexity for straightforward use cases.
FreeSql is an open-source alternative to the following products:
Entity Framework is an object-relational mapper (ORM) for .NET that enables developers to work with databases using .NET objects.
NHibernate is an object-relational mapping (ORM) solution for the .NET platform, providing a framework for mapping an object-oriented domain model to a traditional relational database.
Dapper is a micro-ORM (Object Relational Mapper) for .NET that provides high-performance data access with minimal overhead compared to full ORMs.