Tha Absolute dependency is the column name right you have to give the proper column name, first check in the datatable which it is in small or capital case.
If you have given any wrong case in column names in linq it will not work properly. We can’t modify like that by giving cases with Or.
Considering you would want to Find the Column Name match between the two names mentioned we could try it with the below Expression which retrieves only the matching column names from the Datatable :
Here columnNameMatch is a String variable which should contain the matching column name within the Datatable columns and DT is the Input datatable variable.
You can then check if columNameMatch is not empty and then use the variable in place of the hardcoded column name.
A small correction columnNameMatch with given formula might not be a string but an array or zenumerable …if you use first or (0) it might be giving you the string