How can i aggregate all element in one column to have a string by linq
For example:
I have table named:Items And one column of table named: ListItem
ListItem
1
2
3
How can I select all elements in Column ListItem to have string : 123
(Not select each values of column and join together)
Tks for everyone’s help !!!
I think all answers with string.Join are incomplete since this method needs an array of strings, not an IEnumerable.
This should work.
This results in: