Let's go

EF-Linq

一丶基本语法
(from a in Table where a.id="001" select a).Tolist();

隐式内连接
from a in table1 join b in table2 on a.id equals b.id select new {
a.id,b.id
}
隐式外连接
from a in table1 from b in table2 where a.id==b.id select new {}
左外连接
from a in table1 join b in table2 on a.id equals b.id into xx from c in xx.DefaultIfEmpty()
select new {

}

group by into 分组
(from u in table1 group u by u.Sex into xx select xx).Tolist

posted @   chenze  阅读(189)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
有事您Q我
点击右上角即可分享
微信分享提示