首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

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

2012-09-14 
如果一个字段为两个不同字段的查询方法 public ListBLD_TKQualitySnapshot GetBLDTKQualitySnapshotList

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

 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的查询方法

热点排行