I have to match the email address from entity with email address coming from data table. i can convert the data table value in to lower or upper format however not able to find a way to convert entity value in to lower or upper.
is there any way to convert entity value condition ?could any one please help ?
I dont think you have that option now…you need to get the records and then filter…directly in filter ai dont think it would be possible to convert casing
currentRow[“Primary RM …”].ToString().ToLower(); // Convert to lowercase
currentRow[“Primary RM …”].ToString().ToUpper(); // Convert to Uppercase
OR ignore case differences
loop the datatable
if (string.Equals(entity.EmailAddress, currentRow[“Primary RM …”].ToString(), StringComparison.OrdinalIgnoreCase))
{
// Emails match
}