FreeSql is a powerful O/RM component, supports .NET Core 2.1+, .NET Framework 4.0+, Xamarin, And AOT.
[](https://github.com/dotnetcore)
[](https://www.nuget.org/packages/FreeSql)
[](https://www.nuget.org/stats/packages/FreeSql?groupby=Version)
[](https://raw.githubusercontent.com/dotnetcore/FreeSql/master/LICENSE.txt)
English |
中文
- 🛠 Support CodeFirst data migration.
- 💻 Support DbFirst import entity class from database, or use [Generation Tool](https://github.com/dotnetcore/FreeSql/wiki/DbFirst).
- ⛳ Support advanced type mapping, such as PostgreSQL array type, etc.
- 🌲 Support expression functions, and customizable analysis.
- 🏁 Support one-to-many and many-to-many navigation properties, include and lazy loading.
- 📃 Support Read/Write separation, Splitting Table/Database, Global filters, Optimistic and pessimistic locker.
- 🌳 Support MySql/SqlServer/PostgreSQL/Oracle/Sqlite/Firebird/达梦/人大金仓/南大通用/虚谷/神舟通用/翰高/ClickHouse/QuestDB/MsAccess, etc.
QQ Groups:**561616019(available)**、4336577(full)、8578575(full)、52508226(full)
## 📚 Documentation
| |
| - |
| [Get started](https://github.com/dotnetcore/FreeSql/wiki/Getting-Started) \| [Select](https://github.com/dotnetcore/FreeSql/wiki/Query-Data) \| [Update](https://github.com/dotnetcore/FreeSql/wiki/Update-Data) \| [Insert](https://github.com/dotnetcore/FreeSql/wiki/Insert-Data) \| [Delete](https://github.com/dotnetcore/FreeSql/wiki/Delete-Data) \| [FAQ](https://github.com/dotnetcore/FreeSql/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) |
| [Expression](https://github.com/dotnetcore/FreeSql/wiki/%e8%a1%a8%e8%be%be%e5%bc%8f%e5%87%bd%e6%95%b0) \| [CodeFirst](https://github.com/dotnetcore/FreeSql/wiki/CodeFirst) \| [DbFirst](https://github.com/2881099/FreeSql/wiki/DbFirst) \| [Filters](https://github.com/dotnetcore/FreeSql/wiki/%e8%bf%87%e6%bb%a4%e5%99%a8) \| [AOP](https://github.com/2881099/FreeSql/wiki/AOP) |
| [Repository](https://github.com/dotnetcore/FreeSql/wiki/Repository-layer) \| [UnitOfWork](https://github.com/dotnetcore/FreeSql/wiki/Unit-of-Work) \| [DbContext](https://github.com/dotnetcore/FreeSql/wiki/DbContext) \| [ADO](https://github.com/2881099/FreeSql/wiki/ADO) |
| [Read/Write](https://github.com/dotnetcore/FreeSql/wiki/%e8%af%bb%e5%86%99%e5%88%86%e7%a6%bb) \| [Splitting Table](https://github.com/dotnetcore/FreeSql/wiki/%e5%88%86%e8%a1%a8%e5%88%86%e5%ba%93) \| [Hide tech](https://github.com/dotnetcore/FreeSql/wiki/%E9%AA%9A%E6%93%8D%E4%BD%9C) \| [*Update Notes*](https://github.com/dotnetcore/FreeSql/wiki/%e6%9b%b4%e6%96%b0%e6%97%a5%e5%bf%97) |
> Please select a development mode:
- Use FreeSql, keep the original usage.
- Use [FreeSql.Repository](https://github.com/dotnetcore/FreeSql/wiki/Repository), Repository + UnitOfWork.
- Use [FreeSql.DbContext](https://github.com/dotnetcore/FreeSql/wiki/DbContext), Like efcore.
- Use [FreeSql.BaseEntity](https://github.com/dotnetcore/FreeSql/tree/master/Examples/base_entity), Simple mode.
> Some open source projects that use FreeSql:
- [Zhontai.net Management System](https://github.com/zhontai/Admin.Core)
- [A simple CMS implemented by .NET8](https://github.com/luoyunchong/lin-cms-dotnetcore)
- [AIBPM workflow](https://github.com/leooneone/aibpm.plus)