I'm stuck in using LinQ, I can update using 1 filter but when using multiple it ignores the other 2 and just check the first one.
Here is the code that I am using:
One where that is working:
Engagement_History eh = qdb.Engagement_History.First(a => (a.pdPPMCID.Equals(PPMCID));
Multiple Where that is not working:
Engagement_History eh = qdb.Engagement_History.First(a => ((a.pdPPMCID.Equals("1")) && (a.ehMonth.Equals("1")) && (year.Equals("2016"))));
    
year.Equals("2016")shouldn't this bea.year.Equals("2016")(or something)? Is this a typo in your question or is this your actual code?aand shouldn't you use aString.Comparerather than aEqual?Engagement_History eh = qdb.Engagement_History.Where(a => ((a.pdPPMCID.Equals("1")) && (a.ehMonth.Equals("1")) && (a.year.Equals("2016")))).FirstOrDefault();