排名
6
文章
6
粉丝
16
评论
8
{{item.articleTitle}}
{{item.blogName}} : {{item.content}}
ICP备案 :渝ICP备18016597号-1
网站信息:2018-2025TNBLOG.NET
技术交流:群号656732739
联系我们:contact@tnblog.net
公网安备:
50010702506256


欢迎加群交流技术

linq写法:
//linq写法 var query = (from u in oae.Users join p in oae.User_Parent on u.Id equals p.UsersId select new { username = u.UserName, fahter = p.Father, mother = p.Mother }).ToList();
lamdba写法:
/* * 第一个参数 : join的表 * 第二,三参数: join的参数 * 第四个参数 : 返回值 * */ List<UserViewModel> result = oae.Users.Join(oae.User_Parent, a => a.Id, b => b.UsersId, (u, p) => new UserViewModel { UserName = u.UserName, Father = p.Father, Mother = p.Mother }).ToList();
欢迎加群讨论技术,1群:677373950(满了,可以加,但通过不了),2群:656732739。有需要软件开发,或者学习软件技术的朋友可以和我联系~(Q:815170684)
评价