Sandeep Kumar

Sandeep Kumar

  • 860
  • 627
  • 50k

how to use != in joining like we use sql server

Jul 6 2022 12:30 PM

 var PersonActive = (from Person in _dbContext.Person
                                     join PersonWiseActionHistory in _dbContext.PersonWiseActionHistory on Person.Id Not equals PersonWiseActionHistory.PersonId
                                     where Person.JobId == srchparam.ProjectId && Person.EffectFrom== ApplicationData.AppStringToDatetime(srchparam.SrchDate)
                                     select new
                                     {
                                         PersonId = Person.Id,
                                         PersonName = Person.Name,
                                         Weightage = Person.Weightage
                                     });


Answers (4)