当前位置: 移动技术网 > IT编程>开发语言>c# > Ling to sql 多表查询,多个条件进行关联

Ling to sql 多表查询,多个条件进行关联

2019年09月16日  | 移动技术网IT编程  | 我要评论

  使用多表查询进行关联时,提示 join子句中其中一个表达式的类型不正确,注意字段类型和名称要一致,否则join时提示语法错误,错误截图如下

var incomedetails = from a in _postgredbcontext.merchant_daily_income_detail
                                    join b in _postgredbcontext.merchant_daily_invoice on new { a.merchant_id, a.date.date } equals new { b.merchant_id, b.date.date } 
                                    select a  ;

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

相关文章:

验证码:
移动技术网