Repository Details
Shared by
HelloGitHub Rating
0 ratings
一个功能强大的 C# 对象关系映射程序(ORM)
Past 7 days Received 0 stars ✨
Use arrow keys to explore dates, Home and End for the first and last date, Escape to dismiss.| Date | Star | Daily change |
|---|---|---|
| 周二 | 4,408 | — |
| 周三 | 4,409 | +1 |
| 周四 | 4,408 | -1 |
| 周五 | 4,410 | +2 |
| 周六 | 4,410 | 0 |
| 周日 | 4,409 | -1 |
| 周一 | 4,408 | -1 |
4.4k
Stars
Yes
Chinese
C#
Language
Yes
Active
78
Contributors
182
Issues
Yes
Organization
None
Latest
908
Forks
MIT
License
一个功能强大的 C# 对象关系映射程序(ORM),支持 .NETCore 2.1+、.NETFramework 4.5+ 开发模式下,开箱即用,可繁可简的使用方式。支持 CodeFirst 迁移、丰富的表达式函数、支持多种数据库、大量采用 ExpressionTree 技术提升性能等功能。示例代码:
```csharp
var t0 = fsql.Select<Tag>()
.Where(a => a.Parent.Parent.Name == "粤语")
.IncludeMany(a => a.Tags, then => then.Where(sub => sub.Name == "xxx"))
.ToList();
var t3 = fsql.Select<Xxx>()
.Where(a => a.IsDelete == 0)
.WhereIf(keyword != null, a => a.UserName.Contains(keyword))
.WhereIf(role_id > 0, a => a.RoleId == role_id)
.Where(a => a.Nodes.AsSelect().Any(t => t.Parent.Id == t.UserId))
.Count(out var total)
.Page(page, size)
.OrderByDescending(a => a.Id)
.ToList()
```
Included in:
Vol.39
Comments
Rating:
No comments yet