How to write not equal operator in linq to sql?

后端 未结 3 1427
using (RapidWorkflowDataContext context = new RapidWorkflowDataContext())
                    {
                        var query = from w in context.WorkflowInstanc         


        
3条回答
  •  鱼传尺愫
    2020-12-20 15:39

    You can eliminate join and it should be something like:

    var query = from w in context.WorkflowInstances
                where !context.Workflows.Any(c => w.CurrentStateID != c.LastStateID) && EmpWorkflowIDs.Contains((int)w.ID)
                select w;
    

提交回复
热议问题