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

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

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

  使用多表查询进行关联时,提示 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 ;

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/587007.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-12
下一篇 2022-04-12

发表评论

登录后才能评论

评论列表(0条)

保存