I have this query :
select \'[\' + p.Firstname + \']\' from Person p where p.Firstname = \'Johanne\'
In the table, I have multiple personn
I am not sure in EF but in TSQL I use DataLength
DataLength
DataLength will return the length including trailing blanks Len will return the the length not including the trailing blanks
and DataLength(p.Firstname) = Len('Johanne')