您的位置:首页 > 其它

如果一个字段为两个不同字段的查询方法

2012-09-07 15:18 363 查看
public List<BLD_TKQualitySnapshot> GetBLDTKQualitySnapshotListForSourceTank(long jobId, string destinationTank)
{
var result = from entity in BOMDataBase.BLD_TKQualitySnapshots
where entity.TankCode != destinationTank
join sm in BOMDataBase.BLD_TKSnapshotMasters on entity.TKSnapshotMasterID equals sm.SnapshotMasterID
where (sm.JobActionType == (int)JobAction.Released || sm.JobActionType == (int)JobAction.SwingFinish)
&& sm.JobID == jobId
select entity;
return result.ToList();
}


注意:主要是括号问题

关于checkbox的查询方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐