【发布时间】:2018-07-04 07:38:06
【问题描述】:
我想获取与该 Pre_Number=null 相关的所有 Reconcile_Status 的所有 Pre_Number。在这种情况下,列表中不应该有任何项目。如果还有其他 Pre_number 例如。 7/2018,它有两条记录,这些记录的 Reconcile_Status 为 NULL,那么我应该在列表中获得一项,即 7/2018。
我试过了
var NoNReconciled = context.tbl_prerelease_invoice
.Where(x => x.Reconcile_Status==null)
.Select(y => new { y.Pre_number }).Distinct().ToList();
但我得到了 6/2018
【问题讨论】:
标签: c# .net sql-server entity-framework linq