为了账号安全,请及时绑定邮箱和手机立即绑定

C#Controller里写连表查询不想再实体类里添加,求方法

C#Controller里写连表查询不想再实体类里添加,求方法

慕仔2954353 2017-03-03 11:47:39
 List<t_phone_os> list = DB.Context.From<t_phone_os>()                .Select(t_phone_os._.All, t_phone_brand._.Name, t_phone_series._.Name)                                             .LeftJoin<t_phone_brand>((a, b) =>a.Bid==b.Id)                .LeftJoin<t_phone_series>((a, b) => a.Sid == b.Id)                                          .ToList();
查看完整描述

1 回答

  • 1 回答
  • 2 关注
  • 1500 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号