从其他表mvc .net验证后从表中获取数据

时间:2016-12-09 12:07:58

标签: asp.net-mvc

我在实体框架中工作。问题是我想从表A(AssetTransactions)获得那些与表B的属性LoggedInMonth(ReopeningValidations)不匹配的事务。请给我一个想法或替代查询

from transaction in dbContext.AssetsTransctions join validation on 
dbContext.Reopening Validations on transaction.TransId equals 
validation.AssetTransaction_TransId 
where ((transaction.PurchaseDate <= pDAte && 
transaction.IsAvailable.Equals(true)) && 
(!(validation.LoggedInMonth.Equals(loggedMonthYear)))) select transaction 

0 个答案:

没有答案