LINQ Update List using JOIN with AND Condition There is a direct way to update a collection list by joining with another but that is based on only one column and which will be ultimate thing to JOIN on. But how we can update if we need to compare more than one column ? We can join using AND query for which we need to join with first column and then where clause with second column to update. Below is detailed example for JOIN and Update based on 2 columns. Demo of same is given below. Classes definition public class clsPlayers { public int intId { get ; set ; } = 0 ; public string strPlayerName { get ; set ; } = "" ; public string strPosition { get ; set ; } = "" ; public string strRole { get ; set ; } = "" ; public string strGrade { get ; set ; } = "" ; } public class clsPositions { public string strGrade { get ; set ; } = "" ; ...
This blog is about Coding, Sql, NoSql, tech, .net core mongodb, LINQ and many more...