Linq 实现Left Join左连接查询
var query = from r in ctx.Registrations join cr in ctx.CancelRegistrations on r.ID equals cr.RegistrationID into tt from cr in tt.DefaultIfEmpty() where cr == null select r;
微信扫码查看本文
Linq 实现Left Join左连接查询
var query = from r in ctx.Registrations join cr in ctx.CancelRegistrations on r.ID equals cr.RegistrationID into tt from cr in tt.DefaultIfEmpty() where cr == null select r;
发表评论