标签:
var result = (from role in context.AccountRole join s in context.AccountToRole.Where(s=>s.AccountID==41) on role.ID equals s.RoleID into temp from tt in temp.DefaultIfEmpty() select new { ID = role.ID, RoleName = role.Description, RoleID = tt.RoleID.ToString() }).ToList();
标签:
原文地址:http://www.cnblogs.com/panqingqiang/p/4674030.html