当前位置: 移动技术网 > IT编程>开发语言>c# > C# ling to sql 左表连接

C# ling to sql 左表连接

2019年10月25日  | 移动技术网IT编程  | 我要评论
  var begin_daily = from a in _postgredbcontext.tab1
                                      join b in _postgredbcontext.tab2 on a.id equals b.merchant_id into a_left
                                      from  left_a in a_left.defaultifempty()
                                      where left_a.date.tostring("yyyy-mm-dd") == begin_date
                                      select new {
                                        left_a.id,
                                        left_a.balance,
                                        left_a.service_balance,
                                        left_a.paid_money
                                      };

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网